diff options
| author | Kevin J Hoerr <kjhoerr@protonmail.com> | 2019-12-29 01:00:49 -0500 |
|---|---|---|
| committer | Kevin J Hoerr <kjhoerr@protonmail.com> | 2019-12-29 01:00:49 -0500 |
| commit | 309e12033b76c2221b6b5c761c620816dc0d945d (patch) | |
| tree | 27ee2355f29958084402d43b03f1d96bcd991c8f /src/index.ts | |
| parent | 5f99b8e36d22a54a6a5ef17b43c1b3c33e560cef (diff) | |
| download | ao-coverage-309e12033b76c2221b6b5c761c620816dc0d945d.tar.gz ao-coverage-309e12033b76c2221b6b5c761c620816dc0d945d.tar.bz2 ao-coverage-309e12033b76c2221b6b5c761c620816dc0d945d.zip | |
Move template files to subfolder
More static files will likely be used that do not require using a
template (e.g. favicon.ico), so storing them in the public folder
will keep them with other served files without getting them
confused with the templates.
Diffstat (limited to 'src/index.ts')
| -rw-r--r-- | src/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.ts b/src/index.ts index 6749ae1..71da73c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -34,12 +34,12 @@ if (!path.isAbsolute(HOST_DIR)) { // prepare template files const bashTemplate = { - inputFile: path.join(__dirname, "..", "public", "bash.template"), + inputFile: path.join(__dirname, "..", "public", "templates", "bash.template"), outputFile: path.join(HOST_DIR, "bash"), context: { TARGET_URL } } as Template; const indexTemplate = { - inputFile: path.join(__dirname, "..", "public", "index.html.template"), + inputFile: path.join(__dirname, "..", "public", "templates", "index.html.template"), outputFile: path.join(HOST_DIR, "index.html"), context: { TARGET_URL } } as Template; |
