fix: api.js

This commit is contained in:
Bobby Wibowo 2022-07-22 01:20:08 +07:00
parent fc1783fa12
commit 9a3c81b8bd
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -37,13 +37,11 @@ routes.post('/upload', uploadController.upload, {
// https://github.com/kartikk221/hyper-express/blob/6.2.4/docs/Server.md#server-constructor-options
max_body_length: parseInt(config.uploads.maxSize) * 1e6
})
routes.post('/uploadurls', uploadController.uploadUrls)
routes.post('/upload/delete', uploadController.delete)
routes.post('/upload/bulkdelete', uploadController.bulkDelete)
routes.post('/upload/finishchunks', uploadController.finishChunks)
routes.get('/upload/get/:identifier', uploadController.get)
routes.post('/upload/:albumid', uploadController.upload)
routes.post('/uploadurls/:albumid', uploadController.uploadUrls)
routes.get('/album/get/:identifier', albumsController.get)
routes.get('/album/zip/:identifier', albumsController.generateZip)
routes.get('/album/:id', albumsController.listFiles)