Commit server.ts
parent
2ab5d40c55
commit
242ade0fbb
|
@ -28,6 +28,7 @@ export default class Server {
|
||||||
}
|
}
|
||||||
|
|
||||||
private async loadRoutes(): Promise<void> {
|
private async loadRoutes(): Promise<void> {
|
||||||
|
console.log(__dirname);
|
||||||
const routes = await fs.readdir('./routes');
|
const routes = await fs.readdir('./routes');
|
||||||
routes.forEach(async (routeFile) => {
|
routes.forEach(async (routeFile) => {
|
||||||
if (routeFile === 'index.js') return;
|
if (routeFile === 'index.js') return;
|
||||||
|
|
Loading…
Reference in New Issue