diff --git "a/src/api/routes/applications/\043id/index.ts" "b/src/api/routes/applications/\043id/index.ts" index a16b18a..24df2d8 100644 --- "a/src/api/routes/applications/\043id/index.ts" +++ "b/src/api/routes/applications/\043id/index.ts" @@ -5,7 +5,6 @@ const router: Router = Router(); router.get("/", route({}), async (req: Request, res: Response) => { - //TODO let results = await Application.findOne({where: {id: req.params.id}, relations: ["owner", "bot"] }); res.json(results).status(200); }); @@ -23,4 +22,10 @@ res.json(app).status(200); }); +router.post("/delete", route({}), async (req: Request, res: Response) => { + await Application.delete(req.params.id); + res.send().status(200); +}); + + export default router; \ No newline at end of file