ali path and link

This commit is contained in:
微凉
2021-10-28 22:50:09 +08:00
parent 98f7dffed9
commit 0a50fbd080
13 changed files with 207 additions and 41 deletions

View File

@ -13,7 +13,7 @@ import (
"net/http"
)
func init() {
func Init() {
flag.StringVar(&conf.ConfigFile, "conf", "config.json", "config file")
flag.BoolVar(&conf.Debug,"debug",false,"start with debug mode")
flag.Parse()
@ -25,6 +25,7 @@ func init() {
}
func main() {
Init()
app := fiber.New()
app.Use("/",filesystem.New(filesystem.Config{
Root: http.FS(public.Public),