Allow API Access to some endpoints (#304)
This commit is contained in:
parent
58864852d1
commit
25897ba6d3
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue