mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-06-16 18:29:08 +00:00
styling: standard.js enforcement.
This commit is contained in:
parent
b8da886601
commit
11cf1d4805
9 changed files with 17 additions and 19 deletions
|
@ -4,14 +4,14 @@ module.exports = (R, $) => {
|
|||
const processMappings = mapping => {
|
||||
for (let p in mapping) {
|
||||
R.get(p, ctx => {
|
||||
$.ui.render(ctx.req, ctx.res, mapping[p], {...ctx.params, ...ctx.query})
|
||||
return $.ui.render(ctx.req, ctx.res, mapping[p], { ...ctx.query, ...ctx.params })
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
processMappings({
|
||||
"/s/add": "/_server_add",
|
||||
"/s/:id": "/_server",
|
||||
"/help/:page": "/_help"
|
||||
'/s/add': '/_internal/_server_add',
|
||||
'/s/:id': '/_internal/_server',
|
||||
'/test': '/test'
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue