Allow API Access to some endpoints (#304)

This commit is contained in:
Jason 2021-11-03 13:17:34 +00:00 committed by GitHub
parent 58864852d1
commit 25897ba6d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

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

View File

@ -4,7 +4,7 @@ const Util = require('../../utils/Util');
class albumsGET extends Route {
constructor() {
super('/albums/mini', 'get');
super('/albums/mini', 'get', { canApiKey: true });
}
async run(req, res, db, user) {

View File

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

View File

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