updated downlaod api. no longer passing password in url.

K
2025-08-02 15:54:05 +05:30
parent d36ff7e966
commit 134f8ac931
+5 -3
@@ -40,9 +40,11 @@ curl -k -X POST https://localhost:8080/api/files/upload \
## File download
```shell
curl -k -X GET "https://localhost:8080/api/files/download/15-102-98.mp4?password=Pass@123" \
-H "Authorization: Bearer $JWT" \
--output 15-102-98.mp4
curl -k -X GET "https://localhost:8080/api/files/download" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $JWT" \
-d '{"filename": "15-102-98.mp4", "password": "Pass@123"}' \
--output 15-102-98.mp4
```
---