users.ts 323 B

12345678910111213141516
  1. import { Router } from "express";
  2. import asyncHandler from "express-async-handler";
  3. import * as auth from "../handlers/auth";
  4. import * as user from "../handlers/users";
  5. const router = Router();
  6. router.get(
  7. "/",
  8. asyncHandler(auth.jwt),
  9. asyncHandler(auth.apikey),
  10. asyncHandler(user.get)
  11. );
  12. export default router;