From 5127e93795d1b7985d39d36f00b8c1c2ff97bf6e Mon Sep 17 00:00:00 2001 From: Sterben Date: Sat, 20 Feb 2021 01:23:10 -0500 Subject: [PATCH] added get proclamations endpoint --- src/api/board.ins/routes/root.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/api/board.ins/routes/root.ts b/src/api/board.ins/routes/root.ts index 93b1cbe..67a4241 100644 --- a/src/api/board.ins/routes/root.ts +++ b/src/api/board.ins/routes/root.ts @@ -155,6 +155,14 @@ export default class Root extends Route { }); }); + this.router.get('/proclamations', async (_req, res) => { + const proclamations = await this.server.client.db.Proclamation.find().lean(); + + res.status(200).send({ + proclamations, + }); + }); + this.router.get('/executive-orders', async (_req, res) => { const executiveOrders = await this.server.client.db.ExecutiveOrder.find().lean();