mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 04:09:12 +00:00
always return 200 if next is handling a route
This commit is contained in:
parent
309b02c6f6
commit
a41ec5d807
1 changed files with 1 additions and 0 deletions
|
@ -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 })
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue