From a41ec5d807cf6755a32bbce10fe77fd44bd71d93 Mon Sep 17 00:00:00 2001 From: Kata Date: Thu, 21 Mar 2019 10:07:10 -0500 Subject: [PATCH] always return 200 if next is handling a route --- api/ui.js | 1 + 1 file changed, 1 insertion(+) diff --git a/api/ui.js b/api/ui.js index 7c7763c..cd31587 100644 --- a/api/ui.js +++ b/api/ui.js @@ -7,6 +7,7 @@ export default (R: Router, $: AppContext) => { const processMappings = (mapping: { [path: string]: { path: string, noAutoFix?: boolean } }) => { for (let p in mapping) { R.get(p, (ctx: Context) => { + ctx.status = 200 return $.ui.render(ctx.req, ctx.res, mapping[p].path || mapping[p], { ...ctx.query, ...ctx.params }) })