{"size": 415, "ext": "js", "max_stars_repo_path": "server/routes/user.js", "max_stars_repo_name": "umrkhn/ecommerce", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "server/routes/user.js", "max_issues_repo_name": "umrkhn/ecommerce", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "server/routes/user.js", "max_forks_repo_name": "umrkhn/ecommerce", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 31.9230769231, "max_line_length": 96, "alphanum_fraction": 0.7301204819}
import { Router } from "express";
import { register, login, generateAccessToken, logout } from "../controllers/userController.js";
import { wrapAsync } from "../helpers/index.js";

const router = Router();

router.post("/register", wrapAsync(register));
router.post("/login", wrapAsync(login));
router.get("/token", wrapAsync(generateAccessToken));
router.get("/logout", wrapAsync(logout));

export default router;
