Skip to content

Commit 267f0de

Browse files
committed
routes/api: remove new, add passport types
1 parent 326935b commit 267f0de

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

package-lock.json

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@
138138
"@types/friendly-words": "^1.2.2",
139139
"@types/jest": "^29.5.14",
140140
"@types/node": "^16.18.126",
141+
"@types/passport": "^1.0.17",
141142
"@types/react": "^16.14.0",
142143
"@types/react-dom": "^16.9.25",
143144
"@types/react-router-dom": "^5.3.3",

server/routes/api.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 passport from 'passport';
33
import * as ProjectController from '../controllers/project.controller';
44

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

77
router.get(
88
'/:username/sketches',
@@ -24,4 +24,5 @@ router.delete(
2424
ProjectController.deleteProject
2525
);
2626

27+
// eslint-disable-next-line import/no-default-export
2728
export default router;

0 commit comments

Comments
 (0)