Add more api endpoints to api key
This commit is contained in:
parent
0d25def64c
commit
7446ea49c1
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue