Skip to content
Snippets Groups Projects
Commit a8a94c3b authored by fu6454io's avatar fu6454io
Browse files

create spoert routes

parent 61043852
No related branches found
No related tags found
No related merge requests found
/* import { Router } from "express";
import { body } from "express-validator";
import sportControllers from "../controllers/sport.controllers";
import handleValidationResult from "../middleware/handleValidationResult";
import validateToken from "../middleware/validateToken";
const sportRouter = Router();
//show all sports
sportRouter.get(
"/api/sport/",
validateToken,
sportControllers.showAllSports
);
//create sport
sportRouter.post(
"/api/sport/",
body("name").not().isEmpty(),
handleValidationResult,
validateToken,
sportControllers.createSportController
);
export default sportRouter;
*/
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment