Skip to content

Commit

Permalink
fix: support building with go1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
jmattheis committed Mar 8, 2024
1 parent e4d378a commit 0d1505f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func Register(r *mux.Router) {
r.Handle("/manifest.json", serveFile("manifest.json", "application/json"))
r.Handle("/service-worker.js", serveFile("service-worker.js", "text/javascript"))
r.Handle("/asset-manifest.json", serveFile("asset-manifest.json", "application/json"))
r.Handle("/static/{type}/{resource}", http.FileServerFS(buildDir))
r.Handle("/static/{type}/{resource}", http.FileServer(http.FS(buildDir)))

r.Handle("/favicon.ico", serveFile("favicon.ico", "image/x-icon"))
for _, size := range []string{"16x16", "32x32", "192x192", "256x256"} {
Expand Down

0 comments on commit 0d1505f

Please sign in to comment.