From 59f8336d2548a01e57b669a8ec69de9baf4e931e Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 29 Jun 2020 17:31:18 -0400 Subject: [PATCH] api enable --- src/api/routes/Account.ts | 2 +- src/api/routes/Root.ts | 2 +- src/class/Route.ts | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/api/routes/Account.ts b/src/api/routes/Account.ts index 40b1685..44365bc 100644 --- a/src/api/routes/Account.ts +++ b/src/api/routes/Account.ts @@ -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() { diff --git a/src/api/routes/Root.ts b/src/api/routes/Root.ts index 41f8466..4b96550 100644 --- a/src/api/routes/Root.ts +++ b/src/api/routes/Root.ts @@ -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() { diff --git a/src/class/Route.ts b/src/class/Route.ts index 1374644..ff6f36c 100644 --- a/src/class/Route.ts +++ b/src/class/Route.ts @@ -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;