diff --git a/package-lock.json b/package-lock.json index cd52619..fefe80b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "satyr", - "version": "0.3.0", + "version": "0.3.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/src/controller.ts b/src/controller.ts index 461eb8a..593679e 100644 --- a/src/controller.ts +++ b/src/controller.ts @@ -2,7 +2,7 @@ import * as mediaserver from "./server"; import * as db from "./database"; import * as api from "./api"; import * as http from "./http"; -import * as cleanup from "./cleanup" +import * as cleanup from "./cleanup"; import * as config from "config"; async function run() { diff --git a/src/http.ts b/src/http.ts index f0ee4ff..02e7e17 100644 --- a/src/http.ts +++ b/src/http.ts @@ -18,7 +18,7 @@ function init(satyr: any, port: number){ njk.configure('templates', { autoescape: true, express : app, - watch: true + watch: false }); njkconf ={ sitename: satyr.name, @@ -89,6 +89,9 @@ function init(satyr: any, port: number){ app.get('/chat', (req, res) => { res.render('chat.html', njkconf); }); + app.get('/help', (req, res) => { + res.render('help.njk', njkconf); + }); //api handlers app.post('/api/register', (req, res) => { api.register(req.body.username, req.body.password, req.body.confirm).then( (result) => { diff --git a/templates/base.njk b/templates/base.njk index 6fc4453..a7aa9e7 100644 --- a/templates/base.njk +++ b/templates/base.njk @@ -8,7 +8,7 @@