mirror of
https://codeberg.org/video-prize-ranch/rimgo.git
synced 2026-02-11 16:13:44 +00:00
fix embed handling
This commit is contained in:
2
main.go
2
main.go
@@ -37,7 +37,7 @@ func main() {
|
||||
render.Initialize(views)
|
||||
|
||||
app := http.NewServeMux()
|
||||
app.Handle("/static/", http.FileServerFS(static))
|
||||
app.Handle("/static/", http.StripPrefix("/static/", http.FileServerFS(static)))
|
||||
app.Handle("GET /test-render", wrapHandler(func(w http.ResponseWriter, r *http.Request) error {
|
||||
err := render.Render(w, "errors/404", nil)
|
||||
fmt.Println(err)
|
||||
|
||||
Reference in New Issue
Block a user