fix server route resolve

merge-requests/4/head
Matthew 2020-06-29 17:19:14 -04:00
parent 9e72e02e78
commit d15932fe47
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ export default class Server {
if (routeFile === 'index.js') return; if (routeFile === 'index.js') return;
try { try {
// eslint-disable-next-line new-cap // eslint-disable-next-line new-cap
const route: Route = new (require(`${__dirname}/routes/${routeFile}`).default)(this); const route: Route = new (require(`${__dirname}/../api/routes/${routeFile}`).default)(this);
if (route.conf.deprecated === true) { if (route.conf.deprecated === true) {
route.deprecated(); route.deprecated();
} else if (route.conf.maintenance === true) { } else if (route.conf.maintenance === true) {