summary refs log tree commit diff
path: root/src/api/Server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/Server.ts')
-rw-r--r--src/api/Server.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/api/Server.ts b/src/api/Server.ts

index 7fa5476d..1266bf42 100644 --- a/src/api/Server.ts +++ b/src/api/Server.ts
@@ -191,6 +191,10 @@ export class SpacebarServer extends Server { }); }); + app.get("/_spacebar/api/v1/integrations/gif", (req, res) => { + res.json({ providers: GifProviderManager.getProviders() }); + }); + // Pickup non-expired polls const nonExpiredPolls = await Message.createQueryBuilder("message").where("message.poll->>'expiry' > :now", { now: new Date().toISOString() }).getMany();