mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 18:23:35 +00:00
fix(route) prefix without "/" at beginning in rendered view
This commit is contained in:
parent
2a215481ba
commit
26ee40697b
3 changed files with 16 additions and 22 deletions
|
|
@ -14,6 +14,7 @@
|
|||
validate = require(DIR_SERVER + 'validate'),
|
||||
prefixer = require(DIR_SERVER + 'prefixer'),
|
||||
|
||||
apart = require('apart'),
|
||||
join = require('join-io'),
|
||||
ponse = require('ponse'),
|
||||
mollify = require('mollify'),
|
||||
|
|
@ -141,11 +142,11 @@
|
|||
return config(name);
|
||||
},
|
||||
|
||||
isMinify = isOption.bind(null, 'minify'),
|
||||
isOnline = isOption.bind(null, 'online'),
|
||||
isCache = isOption.bind(null, 'cache'),
|
||||
isDiff = isOption.bind(null, 'diff'),
|
||||
isZip = isOption.bind(null, 'zip'),
|
||||
isMinify = apart(isOption, 'minify'),
|
||||
isOnline = apart(isOption, 'online'),
|
||||
isCache = apart(isOption, 'cache'),
|
||||
isDiff = apart(isOption, 'diff'),
|
||||
isZip = apart(isOption, 'zip'),
|
||||
|
||||
ponseStatic = ponse.static(DIR_ROOT, {
|
||||
cache: isCache
|
||||
|
|
@ -206,10 +207,7 @@
|
|||
}),
|
||||
|
||||
rest,
|
||||
|
||||
route({
|
||||
prefix: prefix
|
||||
}),
|
||||
route,
|
||||
|
||||
join({
|
||||
dir : DIR_ROOT,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue