fix setup

This commit is contained in:
peter
2019-08-11 12:24:46 +02:00
parent 3812748ba9
commit 2526cd82f3
8 changed files with 17 additions and 6 deletions
+5 -1
View File
@@ -190,7 +190,11 @@ export class FrontblockAdmin extends ConfigLoader<AdminConf>{
response.status(200)
response.set('Content-Type', 'application/javascript')
response.send(frontend)
})
})
this.express.get("*", (req, res) => {
res.status(301).redirect("/")
})
this.httpServer = new http.Server(this.express)
this.httpServer.listen(port, () => {
+1 -1
View File
@@ -81,9 +81,9 @@ window['setup'] = async() => {
await Promise.all([
fb.PluginManager.installPlugin("ApiClient"),
fb.PluginManager.installPlugin("HtmlSupplier"),
fb.PluginManager.installPlugin("PluginManager"),
fb.PluginManager.installPlugin("PaymentManager"),
fb.PluginManager.installPlugin("BTCWallet"),
])
await fb.PluginManager.installPlugin("PluginManager"),
location.reload();
}