import express from "express";
import { userCreate,getUser,updateUser,deleteUser, registerUser, loginUser } from "../controllers/UserController.js";


const router = express.Router();

//crud routes
router.post("/", userCreate);
router.get("/", getUser);
router.put("/:id", updateUser);
router.delete("/:id", deleteUser);

//auth routes
router.post("/register", registerUser);
router.post("/login", loginUser);

export default router;