From 69f7281ad1578daaa6bb423858cddb7eadaaa306 Mon Sep 17 00:00:00 2001 From: Project_IO Date: Thu, 24 Apr 2025 22:23:56 +0900 Subject: [PATCH] feat: add static router --- app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.go b/app.go index f0c90f5..ecdaf50 100644 --- a/app.go +++ b/app.go @@ -33,7 +33,7 @@ func daemon(n *commando.Node) error { } 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) if err = app.Run(fmt.Sprintf("%s:%d", cnf.Service.Host, cnf.Service.Port)); err != nil {