users.routes.js 259 B

12345678
  1. import express from 'express';
  2. import { getAllUsers, getUsersFromQuery } from "../controllers/users.controller.js";
  3. const router = express.Router();
  4. router.get('/fromQuery/:query', getUsersFromQuery);
  5. router.get('/all', getAllUsers);
  6. export default router;