mirror of
https://github.com/detleph/server.git
synced 2026-09-08 23:44:51 +02:00
de-duplicated (un-)linkMedia
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
import express from "express";
|
||||
import eventRouter from "./event.routes";
|
||||
import {
|
||||
addVisual,
|
||||
createDiscipline,
|
||||
deleteDiscipline,
|
||||
deleteVisual,
|
||||
getAllDisciplines,
|
||||
getDiscipline,
|
||||
} from "../Controllers/discipline.controller";
|
||||
@@ -18,18 +16,6 @@ router.get("/:pid", getDiscipline);
|
||||
|
||||
router.delete<"/:pid", { pid: string }>("/:pid", requireAuthentication, deleteDiscipline);
|
||||
|
||||
router.post<"/:disciplinePid/images", { disciplinePid: string }>(
|
||||
"/:disciplinePid/images",
|
||||
requireAuthentication,
|
||||
addVisual
|
||||
);
|
||||
|
||||
router.delete<"/:disciplinePid/images/:pid", { disciplinePid: string; pid: string }>(
|
||||
"/:disciplinePid/images/:pid",
|
||||
requireAuthentication,
|
||||
deleteVisual
|
||||
);
|
||||
|
||||
eventRouter.post("/:eventPid/disciplines", requireAuthentication, createDiscipline);
|
||||
|
||||
export default router;
|
||||
|
||||
Reference in New Issue
Block a user