user.route.ts 266 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
import express from "express";
import { userCtrl, authCtrl } from "../controllers";

const router = express.Router();

router
  .route("/")
  .get(authCtrl.requireLogin, userCtrl.getUsers)
  .post(authCtrl.requireLogin, userCtrl.createUser);

export default router;