mesh v2 at /v2/mesh
This commit is contained in:
parent
aee9fd6ed7
commit
6566c45f9a
85 changed files with 138198 additions and 1 deletions
6
app.js
6
app.js
|
|
@ -330,6 +330,8 @@ function init(mod) {
|
|||
mod.static("/meta/", "web/meta");
|
||||
mod.static("/kiri/", "web/kiri");
|
||||
|
||||
mod.static("/v2/", "web2");
|
||||
|
||||
function load_modules(root, force) {
|
||||
// load modules
|
||||
lastmod(`${dir}/${root}`) && fs.readdirSync(`${dir}/${root}`).forEach(mdir => {
|
||||
|
|
@ -890,7 +892,9 @@ function fixedmap(prefix, map) {
|
|||
|
||||
// HTTP 307 redirect
|
||||
function redir(path, type) {
|
||||
return (req, res, next) => http.redirect(res, path, type);
|
||||
return (req, res, next) => {
|
||||
http.redirect(res, path, type);
|
||||
}
|
||||
}
|
||||
|
||||
// mangle request path
|
||||
|
|
|
|||
Loading…
Reference in a new issue