Skip to content

Commit

Permalink
feat: disable signup and reset password endpoints in authRoute
Browse files Browse the repository at this point in the history
  • Loading branch information
swalahamani committed Mar 24, 2024
1 parent 575f284 commit ff8f37d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/api/routes/authRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import {celebrate, Segments} from "celebrate";

import logger from "@loaders/logger";

import {disableRoute} from "@api/middlewares/disableRouteMiddleware";

import AuthService from "@services/AuthService";

import expressUtil from "@util/expressUtil";
Expand Down Expand Up @@ -32,6 +34,8 @@ const authRoute: RouteType = (apiRouter) => {

route.post(
"/signup",
// NOTE: This Route is disabled for now.
disableRoute,
celebrate({
[Segments.BODY]: signupBodySchema,
}),
Expand Down Expand Up @@ -187,6 +191,8 @@ const authRoute: RouteType = (apiRouter) => {

route.post(
"/request-reset-password",
// NOTE: This Route is disabled for now.
disableRoute,
celebrate({
[Segments.BODY]: resetPasswordRequestSchema,
}),
Expand Down Expand Up @@ -242,6 +248,8 @@ const authRoute: RouteType = (apiRouter) => {

route.post(
"/reset-password",
// NOTE: This Route is disabled for now.
disableRoute,
celebrate({
[Segments.BODY]: resetPasswordBodySchema,
}),
Expand Down

0 comments on commit ff8f37d

Please sign in to comment.