Skip to content

Commit eb76d06

Browse files
committed
routes/user: remove new from Router init
1 parent 3720988 commit eb76d06

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/routes/user.routes.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Router } from 'express';
22
import * as UserController from '../controllers/user.controller';
33
import isAuthenticated from '../utils/isAuthenticated';
44

5-
const router = new Router();
5+
export const router = Router();
66

77
router.post('/signup', UserController.createUser);
88

@@ -39,4 +39,5 @@ router.get('/verify', UserController.verifyEmail);
3939
router.delete('/auth/github', UserController.unlinkGithub);
4040
router.delete('/auth/google', UserController.unlinkGoogle);
4141

42+
// eslint-disable-next-line import/no-default-export
4243
export default router;

0 commit comments

Comments
 (0)