added get proclamations endpoint
parent
6a3bf66f28
commit
5127e93795
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue