Skip to content
Snippets Groups Projects
Commit b9487ba8 authored by Grant's avatar Grant
Browse files

Add fix for client-side routing the client UI uses

parent 02329f01
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,11 @@ export class ExpressServer {
"Serving client UI at / using root " +
path.join(__dirname, process.env.SERVE_CLIENT)
);
const indexFile = path.join(process.env.SERVE_CLIENT, "index.html");
this.app.use(express.static(process.env.SERVE_CLIENT));
this.app.use("/chat_callback", (req, res) => {
res.sendFile(indexFile);
});
} else {
this.app.get("/", (req, res) => {
res.status(404).contentType("html").send(`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment