1
0
Fork 0

fix server route resolve

refactor/models
Matthew 2020-06-29 17:20:35 -04:00
parent d15932fe47
commit 1af0f58b23
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ export default class Server {
} }
private async loadRoutes(): Promise<void> { private async loadRoutes(): Promise<void> {
const routes = await fs.readdir(`${__dirname}/routes`); const routes = await fs.readdir(`${__dirname}/../api/routes`);
routes.forEach(async (routeFile) => { routes.forEach(async (routeFile) => {
if (routeFile === 'index.js') return; if (routeFile === 'index.js') return;
try { try {