From 78116f571ad4801bd10c51077b50ec87f1f68be7 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 17 Feb 2024 19:36:19 +0100 Subject: view: Send forms as JSON with JavaScript While forms can be send without JavaScript this new approach has the benefit that the whole data is send as one JSON. This JSON format can also be used for an API or testing. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 2b18ade..bcc5aa7 100644 --- a/main.go +++ b/main.go @@ -36,7 +36,7 @@ func main() { log.Printf("Cleaning up due to OS signal '%v'\n", sig) } -//go:embed view/static/simple.css/simple.css +//go:embed view/static/simple.css/simple.css view/static/ceres.js var static embed.FS func startServer(addr string) *http.Server { -- cgit v1.2.3-70-g09d2