estatesfunding/ef-api/routes/user.js

17 lines
499 B
JavaScript
Raw Normal View History

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