stupid shit
This commit is contained in:
parent
ff6d63a862
commit
2faffdf8c0
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
/*/**/config.json
|
||||
/node_modules/
|
||||
/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()
|
||||
}
|
||||
|
||||
let in = config.index
|
||||
if (in.indexOf('/') !== 0) {
|
||||
in = path.join(__dirname, in)
|
||||
let inp = config.index
|
||||
if (inp.indexOf('/') !== 0) {
|
||||
inp = path.join(__dirname, inp)
|
||||
} else {
|
||||
in = path.resolve(in)
|
||||
inp = path.resolve(inp)
|
||||
}
|
||||
|
||||
res.sendFile(in)
|
||||
res.sendFile(inp)
|
||||
})
|
||||
|
||||
return router
|
||||
|
Loading…
Reference in New Issue
Block a user