added automatic client page reload (#3188)

solution for #3105 

~~not sure if updatenotification is the right place, so opinions?~~

now impleneted in `main.js`
This commit is contained in:
Karsten Hassel
2023-09-13 22:46:17 +02:00
committed by GitHub
parent f2957f90df
commit 7a1591b2d6
5 changed files with 41 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ const socketio = require("socket.io");
const Log = require("logger");
const Utils = require("./utils");
const { cors, getConfig, getHtml, getVersion } = require("./server_functions");
const { cors, getConfig, getHtml, getVersion, getStartup } = require("./server_functions");
/**
* Server
@@ -91,6 +91,8 @@ function Server(config) {
app.get("/config", (req, res) => getConfig(req, res));
app.get("/startup", (req, res) => getStartup(req, res));
app.get("/", (req, res) => getHtml(req, res));
server.on("listening", () => {