Skip to content

Commit

Permalink
changed a typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
sakibcy committed Jul 8, 2024
1 parent 6e658c0 commit 81d6b09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/controllers/authController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const createToken = (id: any) => {
});
}

export const signup_post = async (req: Request, res: Response) => {
export const signupPost = async (req: Request, res: Response) => {
const isEmail = validator.isEmail(req.body.email);
const isLength = validator.isLength(req.body.password, { min: 6, max: undefined });

Expand Down Expand Up @@ -62,7 +62,7 @@ export const signup_post = async (req: Request, res: Response) => {
}
}

export async function login_post(req: Request, res: Response) {
export async function loginPost(req: Request, res: Response) {
const isEmail = validator.isEmail(req.body.email);
const isLength = validator.isLength(req.body.password, { min: 6, max: undefined });

Expand Down
6 changes: 3 additions & 3 deletions src/routes/authRoutes.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import express from "express";
import {login_post, signup_post} from "../controllers/authController";
import {loginPost, signupPost} from "../controllers/authController";

const router = express.Router();

router.post(`/signup`, signup_post);
router.post(`/login`, login_post);
router.post(`/signup`, signupPost);
router.post(`/login`, loginPost);

export default router;

0 comments on commit 81d6b09

Please sign in to comment.