added get proclamations endpoint

merge-requests/17/head
Sterben 2021-02-20 01:23:10 -05:00
parent 6a3bf66f28
commit 5127e93795
1 changed files with 8 additions and 0 deletions

View File

@ -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) => { this.router.get('/executive-orders', async (_req, res) => {
const executiveOrders = await this.server.client.db.ExecutiveOrder.find().lean(); const executiveOrders = await this.server.client.db.ExecutiveOrder.find().lean();