Skip to content

Commit 07b4660

Browse files
committed
feat: release 3.0.0
1 parent 6844e68 commit 07b4660

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/config/routes.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { Express, Router } from 'express';
22
import { readdirSync } from 'fs';
3+
import { join } from 'path';
34

45
export default (app: Express): void => {
56
const router = Router();
67
app.use('/api', router);
7-
readdirSync(`${__dirname}/../routes`).map(async file => {
8+
readdirSync(join(__dirname, '../routes')).map(async file => {
89
if (!file.endsWith('.map')) {
910
(await import(`../routes/${file}`)).default(router);
1011
}

0 commit comments

Comments
 (0)