Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
refactor: remove validation of useless email
Browse files Browse the repository at this point in the history
  • Loading branch information
tassiluca committed Jan 30, 2024
1 parent 1b53264 commit 85a8bd1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions api-service/api/src/routes/user.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Router } from "express";
import {createUser, getProfile, editProfile, deleteProfile, passwordForgotten} from "../controllers/users";
import { authenticationHandler } from "core-components";
import { validationHandler } from "core-components";
import {body, param} from "express-validator";
import {body} from "express-validator";
import {ApiLimiterEntry,apiLimiter} from "core-components";
import RedisLimiterStorage from "../configs/redis.config";

Expand Down Expand Up @@ -81,11 +81,8 @@ userRouter.use(apiLimiter(API_LIMITER_RULES, limitStorage));
*
*/
userRouter.get(
"/:email",
"/",
authenticationHandler,
validationHandler([
param("email").exists().isEmail()
]),
getProfile
);

Expand Down

0 comments on commit 85a8bd1

Please sign in to comment.