feat: add static router
This commit is contained in:
parent
92b8e58977
commit
69f7281ad1
1 changed files with 1 additions and 1 deletions
2
app.go
2
app.go
|
@ -33,7 +33,7 @@ func daemon(n *commando.Node) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
app := gin.Default()
|
app := gin.Default()
|
||||||
app.StaticFS("/", http.Dir("public"))
|
app.StaticFS("/", http.Dir("public/"))
|
||||||
|
|
||||||
fmt.Printf("web server binding at: http://%s:%d\n", cnf.Service.Host, cnf.Service.Port)
|
fmt.Printf("web server binding at: http://%s:%d\n", cnf.Service.Host, cnf.Service.Port)
|
||||||
if err = app.Run(fmt.Sprintf("%s:%d", cnf.Service.Host, cnf.Service.Port)); err != nil {
|
if err = app.Run(fmt.Sprintf("%s:%d", cnf.Service.Host, cnf.Service.Port)); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue