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

const router = express.Router();

router.route("/signup").post(authCtrl.signup);
router.route("/login").post(authCtrl.login);
router.route("/logout").get(authCtrl.logout);

Jiwon Yoon's avatar
Jiwon Yoon committed
10
11
router.route("/oauth").post(authCtrl.saveOauthKeys);

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

14
export default router;