Added Update Article.

This commit is contained in:
2018-11-27 19:57:21 +11:00
parent 0bf91d2bed
commit b629d8c245
5 changed files with 100 additions and 4 deletions

View File

@ -39,7 +39,7 @@ module.exports = class GetBlogArticle extends APIHandler {
let handle = request.getApp().createHandle(request.getString('article', 128));
let article = await request.getApp().getArticles().getArticleByHandle(handle);
if(!article) return { ok: false, data: ERRORS.notFound };
if(!article) return { ok: 404, data: ERRORS.notFound };
return {
ok: true,