This commit is contained in:
Eugene Pankov 2021-07-27 22:17:21 +02:00
parent 8fe3bf10f5
commit e15a2d3989
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -20,6 +20,10 @@ const engine = ngExpressEngine({
bootstrap: AppServerModule,
})
const hardlinks = {
'cwd-detection': 'https://github.com/Eugeny/tabby/wiki/Shell-working-directory-reporting',
}
function start () {
const app = express()
@ -43,6 +47,10 @@ function start () {
res.sendFile(join(DIST_FOLDER, 'terminal.html'))
})
for (const [key, value] of Object.entries(hardlinks)) {
app.get(`/go/${key}`, (req, res) => res.redirect(value))
}
process.umask(0o002)
app.listen(PORT, () => {
console.log(`Node Express server listening on http://localhost:${PORT}`)