auth.route.ts 514 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);

Jiwon Yoon's avatar
Jiwon Yoon committed
12
13
14
15
16
router.route("/oauth/kakao/token").post(authCtrl.kakaoAuthenticate);

router.route("/oauth/:socialType").get(authCtrl.getOauthKeys);

// router.param("socialType", authCtrl.getOauthKeys);
17

18
export default router;