diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-02-13 22:29:14 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-02-13 22:29:14 +1100 |
commit | 204fe2aed1ebaed98a842db785851eb4f64bc2be (patch) | |
tree | dbcbf5863f6ffe86d544608d5c206b207c6df307 /api/src/routes/channels/#channel_id/webhooks.ts | |
parent | ;jondfgsk (diff) | |
parent | Appropriate DB charset (#629) (diff) | |
download | server-204fe2aed1ebaed98a842db785851eb4f64bc2be.tar.xz |
Merge branch 'master' into maddyrtc
Diffstat (limited to 'api/src/routes/channels/#channel_id/webhooks.ts')
-rw-r--r-- | api/src/routes/channels/#channel_id/webhooks.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/api/src/routes/channels/#channel_id/webhooks.ts b/api/src/routes/channels/#channel_id/webhooks.ts index 7b894455..92895da6 100644 --- a/api/src/routes/channels/#channel_id/webhooks.ts +++ b/api/src/routes/channels/#channel_id/webhooks.ts @@ -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) => { |