feat: started to make things work
This commit is contained in:
1 parent
9e21732d00
commit
de6480ba4e
8 files changed
+157
-106
No files matched your search
@@ -0,0 +1,17 @@
|
||||
//go:build !dev
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"io/fs"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//go:embed public/*
|
||||
var publicFiles embed.FS
|
||||
|
||||
func publicHandler() http.Handler {
|
||||
sub, _ := fs.Sub(publicFiles, "public")
|
||||
return http.FileServer(http.FS(sub))
|
||||
}
|
||||
Reference in new issue
Block a user