forked from engineering/cloudservices
fix server route resolve
parent
d15932fe47
commit
1af0f58b23
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue