stupid shit
This commit is contained in:
parent
ff6d63a862
commit
2faffdf8c0
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
/*/**/config.json
|
/*/**/config.json
|
||||||
/node_modules/
|
/node_modules/
|
||||||
/package-lock.json
|
/package-lock.json
|
||||||
|
*.html
|
||||||
|
1
applications/highlight-termbin/.gitignore
vendored
Normal file
1
applications/highlight-termbin/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.html
|
@ -67,14 +67,14 @@ async function init () {
|
|||||||
return next()
|
return next()
|
||||||
}
|
}
|
||||||
|
|
||||||
let in = config.index
|
let inp = config.index
|
||||||
if (in.indexOf('/') !== 0) {
|
if (inp.indexOf('/') !== 0) {
|
||||||
in = path.join(__dirname, in)
|
inp = path.join(__dirname, inp)
|
||||||
} else {
|
} else {
|
||||||
in = path.resolve(in)
|
inp = path.resolve(inp)
|
||||||
}
|
}
|
||||||
|
|
||||||
res.sendFile(in)
|
res.sendFile(inp)
|
||||||
})
|
})
|
||||||
|
|
||||||
return router
|
return router
|
||||||
|
Loading…
Reference in New Issue
Block a user