This commit is contained in:
anthdm
2024-04-24 19:52:05 +02:00
commit af9c83cbd0
31 changed files with 1515 additions and 0 deletions

16
static_dev.go Normal file
View File

@@ -0,0 +1,16 @@
//+build dev
//go:build dev
// +build dev
package main
import (
"fmt"
"net/http"
"os"
)
func public() http.Handler {
fmt.Println("building static files for development")
return http.StripPrefix("/public/", http.FileServerFS(os.DirFS("public")))
}