mirror of
https://github.com/detleph/server.git
synced 2026-09-06 16:06:18 +02:00
Add routes for getting disciplines
+ Throwing an error still crashes the server
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import express from "express";
|
||||
import { getAllDisciplines, getDiscipline } from "../Controllers/discipline.controller";
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
router.get("/", getAllDisciplines); // TODO: Optional auth
|
||||
router.get("/:pid", getDiscipline);
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user