import express from "express";
import { register, login, logout, getCurrentUser, checkAuth } from "../controllers/authController.js";
import { verifyToken } from "../middleware/authMiddleware.js";

const router = express.Router();

router.post("/register", register);
router.post("/login", login);
router.post("/logout", verifyToken, logout);
router.get("/me", verifyToken, getCurrentUser);
router.get("/check", verifyToken, checkAuth);

export default router;