Added BASEPATH support to all entry points.

Signed-off-by: James Ketrenos <james_gitlab@ketrenos.com>
This commit is contained in:
James Ketrenos 2019-11-28 02:19:23 -08:00
parent 01ed75f306
commit 39f87a596f
3 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<html>
<base href="/">
<script>'<base href="BASEPATH">';</script>
<body>
<style>
body {

View File

@ -41,8 +41,6 @@
<script src="fetch.js"></script>
<script>'<base href="/BASEPATH/">';</script>
<style>
body,* {
font-family: Helvetica Neue,Helvetica,Arial,sans-serif;

View File

@ -40,6 +40,8 @@ app.set("basePath", basePath);
* set in the headers */
app.set("trust proxy", true);
app.use(basePath, require("./routes/basepath.js"));
/* Handle static files first so excessive logging doesn't occur */
app.use(basePath, express.static("frontend", { index: false }));