Add more api endpoints to api key

This commit is contained in:
Nameless 2021-11-03 13:29:39 +00:00
parent 0d25def64c
commit 7446ea49c1
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) {