Skip to content

Commit ed7d91b

Browse files
committed
feat: disable auth on /annotations and /news routes
1 parent 14c932f commit ed7d91b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/api/routes/annotationsRoute.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import expressUtil from "@util/expressUtil";
99
import {iRequest, iResponse, RouteType} from "@customTypes/expressTypes";
1010
import {MultiAnnotation} from "@customTypes/appDataTypes/annotationTypes";
1111
import AnnotationService from "@services/AnnotationService";
12-
import middlewares from "@api/middlewares";
12+
// import middlewares from "@api/middlewares";
1313

1414
const route = Router();
1515
const annotationService = new AnnotationService();
@@ -21,7 +21,7 @@ const annotationsRoute: RouteType = (apiRouter) => {
2121
Registering isAuthorized middleware to the entire /users route
2222
as all the endpoint in this route needs authorization.
2323
*/
24-
route.use(middlewares.isAuthorized);
24+
// route.use(middlewares.isAuthorized);
2525

2626
route.get(
2727
"/",

src/api/routes/newsRoute.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
newsSubmissionBodySchema,
2323
} from "@validations/newsRouteSchemas";
2424
import NewsService from "@services/NewsService";
25-
import middlewares from "@api/middlewares";
25+
// import middlewares from "@api/middlewares";
2626

2727
const route = Router();
2828
const newsService = new NewsService();
@@ -34,7 +34,7 @@ const newsRoute: RouteType = (apiRouter) => {
3434
Registering isAuthorized middleware to the entire /users route
3535
as all the endpoint in this route needs authorization.
3636
*/
37-
route.use(middlewares.isAuthorized);
37+
// route.use(middlewares.isAuthorized);
3838

3939
route.post(
4040
"/",

0 commit comments

Comments
 (0)