We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3720988 commit eb76d06Copy full SHA for eb76d06
server/routes/user.routes.ts
@@ -2,7 +2,7 @@ import { Router } from 'express';
2
import * as UserController from '../controllers/user.controller';
3
import isAuthenticated from '../utils/isAuthenticated';
4
5
-const router = new Router();
+export const router = Router();
6
7
router.post('/signup', UserController.createUser);
8
@@ -39,4 +39,5 @@ router.get('/verify', UserController.verifyEmail);
39
router.delete('/auth/github', UserController.unlinkGithub);
40
router.delete('/auth/google', UserController.unlinkGoogle);
41
42
+// eslint-disable-next-line import/no-default-export
43
export default router;
0 commit comments