api enable

merge-requests/4/head
Matthew 2020-06-29 17:31:18 -04:00
parent 47444a26ed
commit 59f8336d25
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
3 changed files with 7 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import { Req } from '../interfaces';
export default class Account extends Route { export default class Account extends Route {
constructor(server: Server) { constructor(server: Server) {
super(server, { path: '/account', deprecated: false, maintenance: true }); super(server, { path: '/account', deprecated: false, maintenance: false });
} }
public bind() { public bind() {

View File

@ -4,7 +4,7 @@ import { Route } from '../../class';
export default class Root extends Route { export default class Root extends Route {
constructor(server: Server) { constructor(server: Server) {
super(server, { path: '/', deprecated: false, maintenance: true }); super(server, { path: '/', deprecated: false, maintenance: false });
} }
public bind() { public bind() {

View File

@ -10,6 +10,11 @@ export default class Route {
public conf: { path: string, deprecated?: boolean, maintenance?: boolean }; public conf: { path: string, deprecated?: boolean, maintenance?: boolean };
protected constructor(server: Server, conf: { path: string, deprecated?: boolean, maintenance?: boolean }) { protected constructor(server: Server, conf: { path: string, deprecated?: boolean, maintenance?: boolean }) {
this.conf = {
path: null,
deprecated: false,
maintenance: false,
};
this.server = server; this.server = server;
this.router = router(); this.router = router();
this.conf = conf; this.conf = conf;