rollback: go:embed for static files
This commit is contained in:
parent
70b329c902
commit
ef3f3c5428
5 changed files with 15 additions and 11 deletions
|
|
@ -38,6 +38,7 @@ func IndexHandler(app *model.AppState) http.Handler {
|
|||
return
|
||||
}
|
||||
|
||||
ServeEmbedFS(app.PublicFS, "public").ServeHTTP(w, r)
|
||||
http.FileServer(http.Dir("./public")).ServeHTTP(w, r)
|
||||
//ServeEmbedFS(app.PublicFS, "public").ServeHTTP(w, r)
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue