feat: Update project structure and configuration files

This commit is contained in:
rogeecn
2025-03-24 09:29:38 +08:00
parent ea15a51556
commit 8de43c2861
159 changed files with 498 additions and 0 deletions

30
backend/test.http Normal file
View File

@@ -0,0 +1,30 @@
@host=http://localhost:8088
@md5=959e5310105c96e653f10b74e5bdc36b
@idx=9
### upload chunk
POST {{host}}/v1/uploads/{{md5}}/chunks/{{idx}} HTTP/1.1
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="0"
Content-Type: application/octet-stream
< ./fixtures/files/{{idx}}
------WebKitFormBoundary7MA4YWxkTrZu0gW--
### complete upload
POST {{host}}/v1/uploads/{{md5}}/complete HTTP/1.1
Content-Type: application/json
{
"md5": "{{md5}}",
"filename": "camera.mp4",
"mime": "video/mp4",
"chunks": 30
}
### get medias
GET {{host}}/v1/medias HTTP/1.1
Content-Type: application/json