You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
307 B
15 lines
307 B
//go:build dev
|
|
|
|
package main
|
|
|
|
import "net/http"
|
|
|
|
func spaHandler() http.Handler {
|
|
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
|
if r.URL.Path == "/" {
|
|
w.Write([]byte("Dev mode — frontend served by Vite at http://localhost:5173\n"))
|
|
return
|
|
}
|
|
http.NotFound(w, r)
|
|
})
|
|
}
|
|
|