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:
Daniel J. Summers
2017-10-01 16:15:56 -05:00
parent e0d27a708d
commit 8055c34f7c
8 changed files with 30 additions and 23 deletions

View File

@@ -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>",

View File

@@ -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