Prep for 0.8.2 release
- Adds ability to view answered requests (#3) - Fixes multi-line request display (#7) - Docs updated for 0.8.2
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "my-prayer-journal-api",
|
||||
"private": true,
|
||||
"version": "0.8.1",
|
||||
"version": "0.8.2",
|
||||
"description": "Server API for myPrayerJournal",
|
||||
"main": "index.js",
|
||||
"author": "Daniel J. Summers <daniel@djs-consulting.com>",
|
||||
|
||||
@@ -40,11 +40,6 @@ export default function (checkJwt) {
|
||||
}
|
||||
await next()
|
||||
})
|
||||
// Get the least-recently-updated request (used for the "pray through the journal" feature)
|
||||
.get('/:id/oldest', checkJwt, async (ctx, next) => {
|
||||
ctx.body = await db.request.oldest(ctx.state.user.sub)
|
||||
await next()
|
||||
})
|
||||
.get('/answered', checkJwt, async (ctx, next) => {
|
||||
ctx.body = await db.request.answered(ctx.state.user.sub)
|
||||
ctx.response.status = 200
|
||||
|
||||
Reference in New Issue
Block a user