summary refs log tree commit diff
path: root/src/api/Server.ts
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-07-07 20:18:21 +0200
committerRory& <root@rory.gay>2026-07-08 01:20:38 +0200
commit4bb0f39a433f6b2e0ff30eeacfc1eb90307b00b5 (patch)
treebb0ff9c5b25ab444071e9b65b0c3653c2d47d84a /src/api/Server.ts
parentSwitch default GIF provider to klipy since tenor is no longer supported (diff)
downloadserver-ts-4bb0f39a433f6b2e0ff30eeacfc1eb90307b00b5.tar.xz
Add endpoint to get enabled/known gif providers
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();