Enable deleting files with the API key

This commit is contained in:
Pitu 2020-07-20 09:17:13 +09:00
parent bf63bc5e2e
commit a891cbc1fc
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ const log = require('../../utils/Log');
class fileDELETE extends Route {
constructor() {
super('/file/:id', 'delete');
super('/file/:id', 'delete', { canApiKey: true });
}
async run(req, res, db, user) {