feat: update file handling to redirect to Telegram CDN and adjust Swagger documentation

This commit is contained in:
MythEclipse
2026-05-29 03:43:49 +07:00
parent 5425f6d33d
commit 8508b36026
5 changed files with 23 additions and 53 deletions
+3 -3
View File
@@ -30,10 +30,10 @@ describe('Swagger Documentation Endpoints', () => {
const uploadResponses = uploadPath.post.responses;
expect(uploadResponses).toHaveProperty('429');
// Verify download is no longer documented as 302 redirect
// Verify download is 302 redirect to Telegram CDN
const downloadResponses = downloadPath.get.responses;
expect(downloadResponses['200'].description).toContain('stream');
expect(downloadResponses).not.toHaveProperty('302');
expect(downloadResponses).toHaveProperty('302');
expect(downloadResponses['302'].description).toContain('Redirect');
});
it('returns Swagger UI HTML page', async () => {