Add dummy endpoints to prevent client loading some settings panels indefinitely

This commit is contained in:
TheArcaneBrony
2022-01-24 16:33:29 +03:00
committed by Erkin Alp Güney
parent db0392d688
commit 713b6d07b4
4 changed files with 48 additions and 0 deletions
@@ -14,6 +14,10 @@ export interface WebhookCreateSchema {
name: string;
avatar: string;
}
//TODO: implement webhooks
router.get("/", route({}), async (req: Request, res: Response) => {
res.json([]);
});
// TODO: use Image Data Type for avatar instead of String
router.post("/", route({ body: "WebhookCreateSchema", permission: "MANAGE_WEBHOOKS" }), async (req: Request, res: Response) => {