Skip to content

Commit 23a7e86

Browse files
committed
refactor: Update import paths for router and middleware modules
1 parent bdc694a commit 23a7e86

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import cors from 'cors';
33
import helmet from 'helmet';
44
import path from 'node:path';
55
import express from 'express';
6-
import { router } from './views/router';
6+
import { router } from './router';
77
import compression from 'compression';
88
import expressLayouts from 'express-ejs-layouts';
99
import { errorMiddleware, notFoundMiddleware } from './middleware';
File renamed without changes.

src/views/router.ts renamed to src/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111

1212
import express from 'express';
1313

14-
import { catchAsyncErrorMiddleware } from '../middleware';
14+
import { catchAsyncErrorMiddleware } from './middleware';
1515

1616
const router = express.Router();
1717

0 commit comments

Comments
 (0)