diff --git a/app/const.js b/app/const.js index 8dc10db..9373688 100644 --- a/app/const.js +++ b/app/const.js @@ -8,7 +8,7 @@ import fs from "fs"; /** * Path to the folder holding the certificates used for signing the PDFs. - * Defaults to `./certs` + * Defaults to `./certs/` * Can be replaced via the `CERTS_PATH` env variable. * @constant */ @@ -16,7 +16,7 @@ export const CERTS_PATH = process.env.CERTS_PATH ? process.env.CERTS_PATH : `${p /** * Path to the "data" folder. - * Defaults to `./app/data` + * Defaults to `./app/data/` * Can be replaced via the `DATA_PATH` env variable. * @constant */ @@ -30,7 +30,7 @@ export const TMP_PATH = `${process.env.PWD}/app/tmp/`; /** * Path to the "templates" folder. - * Defaults to `./app/templates` + * Defaults to `./app/templates/` * Can be replaced via the `TEMPLATES_PATH` env variable. * @constant */ diff --git a/docs/const.md b/docs/const.md index 9edf403..b2cc9d8 100644 --- a/docs/const.md +++ b/docs/const.md @@ -22,7 +22,7 @@ thread-keeper ### const.CERTS\_PATH Path to the folder holding the certificates used for signing the PDFs. -Defaults to `./certs` +Defaults to `./certs/` Can be replaced via the `CERTS_PATH` env variable. **Kind**: static constant of [const](#module_const) @@ -30,7 +30,7 @@ Can be replaced via the `CERTS_PATH` env variable. ### const.DATA\_PATH Path to the "data" folder. -Defaults to `./app/data` +Defaults to `./app/data/` Can be replaced via the `DATA_PATH` env variable. **Kind**: static constant of [const](#module_const) @@ -44,6 +44,8 @@ Path to the folder in which temporary files will be written by the app. ### const.TEMPLATES\_PATH Path to the "templates" folder. +Defaults to `./app/templates/` +Can be replaced via the `TEMPLATES_PATH` env variable. **Kind**: static constant of [const](#module_const) diff --git a/docs/server.md b/docs/server.md index 194d276..da02a11 100644 --- a/docs/server.md +++ b/docs/server.md @@ -12,6 +12,7 @@ thread-keeper * [.options](#module_server.options) * [.CAPTURES_WATCH](#module_server.CAPTURES_WATCH) : Object * _inner_ + * [~nunjucksEnv](#module_server..nunjucksEnv) : nunjucks.Environment * [~ipBlockList](#module_server..ipBlockList) : IPBlockList * [~accessKeys](#module_server..accessKeys) : AccessKey * [~index(request, reply)](#module_server..index) ⇒ Promise.<fastify.FastifyReply> @@ -38,6 +39,10 @@ May be used to redirect users if over capacity. [!] Only good for early prototyping. **Kind**: static constant of [server](#module_server) + + +### server~nunjucksEnv : nunjucks.Environment +**Kind**: inner constant of [server](#module_server) ### server~ipBlockList : IPBlockList