From e15a2d398904573cb9c44b537e972470a1458081 Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Tue, 27 Jul 2021 22:17:21 +0200 Subject: [PATCH] links --- frontend/src/server.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/src/server.ts b/frontend/src/server.ts index 2ce1b2a..c99ada1 100644 --- a/frontend/src/server.ts +++ b/frontend/src/server.ts @@ -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}`)