Added BASEPATH support to all entry points.
Signed-off-by: James Ketrenos <james_gitlab@ketrenos.com>
This commit is contained in:
parent
01ed75f306
commit
39f87a596f
@ -1,5 +1,5 @@
|
||||
<html>
|
||||
<base href="/">
|
||||
<script>'<base href="BASEPATH">';</script>
|
||||
<body>
|
||||
<style>
|
||||
body {
|
||||
|
@ -41,8 +41,6 @@
|
||||
|
||||
<script src="fetch.js"></script>
|
||||
|
||||
<script>'<base href="/BASEPATH/">';</script>
|
||||
|
||||
<style>
|
||||
body,* {
|
||||
font-family: Helvetica Neue,Helvetica,Arial,sans-serif;
|
||||
|
@ -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 }));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user