import { registerUser, loginUser } from "../controllers/UserController.js";
import express from 'express'
import protect from "../middlware/auth.js";

const router = express.Router();

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

export default router