2024-09-04 00:52:26 +00:00
|
|
|
import express from "express";
|
|
|
|
const router = express.Router();
|
|
|
|
|
2024-09-08 12:30:09 +00:00
|
|
|
import { signup, signin, verifyUser, showUser, forgotPassword, resetPassword, } from "../controllers/user.js";
|
2024-09-04 00:52:26 +00:00
|
|
|
|
|
|
|
router.post("/signin", signin);
|
|
|
|
router.post("/signup", signup);
|
2024-09-07 13:58:47 +00:00
|
|
|
router.get('/:id/verify/:token/', verifyUser);
|
2024-09-06 15:02:20 +00:00
|
|
|
router.get('/:id', showUser);
|
2024-09-08 12:30:09 +00:00
|
|
|
router.post("/forgotpassword", forgotPassword);
|
|
|
|
router.post("/resetpassword/:id/:token", resetPassword);
|
|
|
|
|
2024-09-04 00:52:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default router;
|