|
|
@ -14,12 +14,13 @@ export async function galleryViewGet(req: Request, res: Response<GalleryType>) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export async function galleryViewCreate(req: Request<any, any>, res) { |
|
|
|
export async function galleryViewCreate(req: Request<any, any>, res) { |
|
|
|
const view = await galleryViewService.galleryViewCreate({ |
|
|
|
res.json( |
|
|
|
gallery: req.body, |
|
|
|
await galleryViewService.galleryViewCreate({ |
|
|
|
// todo: sanitize
|
|
|
|
gallery: req.body, |
|
|
|
tableId: req.params.tableId, |
|
|
|
// todo: sanitize
|
|
|
|
}); |
|
|
|
tableId: req.params.tableId, |
|
|
|
res.json(view); |
|
|
|
}) |
|
|
|
|
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export async function galleryViewUpdate(req, res) { |
|
|
|
export async function galleryViewUpdate(req, res) { |
|
|
|