{"size": 451, "ext": "js", "max_stars_repo_path": "Server/src/routes/user.js", "max_stars_repo_name": "Prasundas99/Hungrily", "max_stars_repo_stars_event_min_datetime": "2021-06-20T18:50:20.000Z", "max_stars_repo_stars_event_max_datetime": "2021-08-05T07:36:09.000Z", "max_issues_repo_path": "app/Server/src/routes/user.js", "max_issues_repo_name": "Sohi-dev/Hungrily_Hackathon", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/Server/src/routes/user.js", "max_forks_repo_name": "Sohi-dev/Hungrily_Hackathon", "max_forks_repo_forks_event_min_datetime": "2021-09-06T16:05:03.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-06T16:05:03.000Z"}
{"max_stars_count": 5, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 25.0555555556, "max_line_length": 60, "alphanum_fraction": 0.733924612}
import express from "express";
import {
  authUser,
  getUserProfile,
  createUser,
  updateUserProfile,
} from "../controllers/user.controller.js";
import { verifyToken } from "../middlewares/verifyToken.js";

const router = express.Router();

router.post("/login", authUser);
router.get("/profile", verifyToken, getUserProfile);
router.put("/profile", verifyToken, updateUserProfile);
router.post("/", createUser);

export { router as userRouter };
