import { Router } from "express";
import { requireAuth } from "../../middleware/auth.js";
import { asyncHandler } from "../../middleware/errorHandler.js";
import * as controller from "./controller.js";

export const usersRouter = Router();

usersRouter.get("/me", requireAuth, asyncHandler(controller.getMe));
usersRouter.patch("/me", requireAuth, asyncHandler(controller.patchMe));
