auth.route.ts 390 Bytes
Newer Older
1
2
3
4
5
6
7
import express from "express";
import { authCtrl } from "../controllers";

const router = express.Router();

router.route("/signup").post(authCtrl.signup);
router.route("/login").post(authCtrl.login);
8
router.route("/login/kakao").get(authCtrl.kakaoLogin);
9
10
router.route("/logout").get(authCtrl.logout);

11
12
router.route("/oauth/kakao").post(authCtrl.kakaoAuthenticate);

13
export default router;