mirror of
https://github.com/spacebarchat/server.git
synced 2026-07-20 17:50:55 +00:00
Add endpoint to get enabled/known gif providers
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user