fixed redirect
This commit is contained in:
@@ -183,7 +183,7 @@ export class FrontblockAdmin extends ConfigLoader<AdminConf>{
|
||||
|
||||
let port:number = this.conf.httpPort
|
||||
this.express = express()
|
||||
this.express.use(express.static('static'))
|
||||
this.express.use('/', express.static('static'))
|
||||
|
||||
this.express.get('/plugins/:id'+".js", (request, response) => {
|
||||
let frontend = this.pm.getFrontend(request.params.id)
|
||||
@@ -193,7 +193,7 @@ export class FrontblockAdmin extends ConfigLoader<AdminConf>{
|
||||
})
|
||||
|
||||
this.express.get("*", (req, res) => {
|
||||
res.status(301).redirect("/")
|
||||
res.status(301).redirect('/')
|
||||
})
|
||||
|
||||
this.httpServer = new http.Server(this.express)
|
||||
|
||||
Reference in New Issue
Block a user