mirror of
https://github.com/detleph/server.git
synced 2026-09-08 16:06:19 +02:00
de-duplicated (un-)linkMedia
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
import express from "express";
|
||||
import disciplineRouter from "./discipline.routes";
|
||||
import {
|
||||
addVisual,
|
||||
createRoleSchema,
|
||||
deleteVisual,
|
||||
getAllRoleSchemas,
|
||||
getAllRoleSchemasWithParam,
|
||||
getRoleSchema,
|
||||
@@ -20,12 +18,4 @@ disciplineRouter.get("/:disciplinePid/role-schemas", getAllRoleSchemasWithParam)
|
||||
|
||||
disciplineRouter.post("/:disciplinePid/role-schemas", requireAuthentication, createRoleSchema);
|
||||
|
||||
router.post<"/:schemaPid/images", { schemaPid: string }>("/:schemaPid/images", requireAuthentication, addVisual);
|
||||
|
||||
router.delete<"/:schemaPid/images/:pid", { schemaPid: string; pid: string }>(
|
||||
"/:schemaPid/images/:pid",
|
||||
requireAuthentication,
|
||||
deleteVisual
|
||||
);
|
||||
|
||||
export default router;
|
||||
|
||||
Reference in New Issue
Block a user