forked from engineering/cloudservices
api enable
parent
47444a26ed
commit
59f8336d25
|
@ -5,7 +5,7 @@ import { Req } from '../interfaces';
|
|||
|
||||
export default class Account extends Route {
|
||||
constructor(server: Server) {
|
||||
super(server, { path: '/account', deprecated: false, maintenance: true });
|
||||
super(server, { path: '/account', deprecated: false, maintenance: false });
|
||||
}
|
||||
|
||||
public bind() {
|
||||
|
|
|
@ -4,7 +4,7 @@ import { Route } from '../../class';
|
|||
|
||||
export default class Root extends Route {
|
||||
constructor(server: Server) {
|
||||
super(server, { path: '/', deprecated: false, maintenance: true });
|
||||
super(server, { path: '/', deprecated: false, maintenance: false });
|
||||
}
|
||||
|
||||
public bind() {
|
||||
|
|
|
@ -10,6 +10,11 @@ export default class Route {
|
|||
public 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.router = router();
|
||||
this.conf = conf;
|
||||
|
|
Loading…
Reference in New Issue