Merge pull request #2 from test137E29B/feature/more-api-endpoints

Add more api endpoints to api key
This commit is contained in:
Jason 2021-11-03 13:30:03 +00:00 committed by GitHub
commit 792e976c17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ const Route = require('../../structures/Route');
class tagAddPOST extends Route {
constructor() {
super('/file/tag/add', 'post');
super('/file/tag/add', 'post', { canApiKey: true });
}
async run(req, res, db, user) {

View File

@ -3,7 +3,7 @@ const Route = require('../../structures/Route');
class tagPOST extends Route {
constructor() {
super('/tag/new', 'post');
super('/tag/new', 'post', { canApiKey: true });
}
async run(req, res, db, user) {

View File

@ -2,7 +2,7 @@ const Route = require('../../structures/Route');
class tagsGET extends Route {
constructor() {
super('/tags', 'get');
super('/tags', 'get', { canApiKey: true });
}
async run(req, res, db, user) {