|
|
@@ -18,17 +18,11 @@ import {
|
|
|
validateBody
|
|
|
} from "../middlewares/validateBody";
|
|
|
import {
|
|
|
- RegisterInput
|
|
|
-} from "../actions/auth/register/types";
|
|
|
-import {
|
|
|
- LoginInput
|
|
|
-} from "../actions/auth/login/types";
|
|
|
-import {
|
|
|
- FinishMailVerifyInput
|
|
|
-} from "../actions/auth/finishMailVerify/types";
|
|
|
-import {
|
|
|
- RefreshTokenInput
|
|
|
-} from "../actions/auth/refreshToken/types";
|
|
|
+ FinishMailVerifyInput,
|
|
|
+ RefreshTokenInput,
|
|
|
+ RegisterInput,
|
|
|
+ LoginInput
|
|
|
+} from "../actions/auth/types/index";
|
|
|
|
|
|
const router = Router();
|
|
|
|
|
|
@@ -36,6 +30,7 @@ router.post("/finish-mail-verify", validateBody(FinishMailVerifyInput), finishMa
|
|
|
router.post("/refresh-token", validateBody(RefreshTokenInput), refreshToken);
|
|
|
router.post("/register", validateBody(RegisterInput), register);
|
|
|
router.post("/login", validateBody(LoginInput), login);
|
|
|
+router.post("/start-mail-verify", startMailVerify);
|
|
|
router.post("/logout", authMiddleware, logout);
|
|
|
router.get("/me", authMiddleware, me);
|
|
|
|