{"size": 343, "ext": "js", "max_stars_repo_path": "routes/userRoutes.js", "max_stars_repo_name": "DouscheSois/areyouonline-app", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "routes/userRoutes.js", "max_issues_repo_name": "DouscheSois/areyouonline-app", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "routes/userRoutes.js", "max_forks_repo_name": "DouscheSois/areyouonline-app", "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": 22.8666666667, "max_line_length": 68, "alphanum_fraction": 0.7317784257}
import express from "express";
const router = express.Router();
import {
  authUser,
  registerUser,
  getUsers,
} from "../controllers/userController.js";

import { protect } from "../middleware/authMiddleware.js";

router.route("/register").post(registerUser).get(protect, getUsers);
router.post("/login", authUser);

export default router;
