From d4e6d4905b1074ebcb6d082fadf50cc2ed80493d Mon Sep 17 00:00:00 2001 From: ewy Date: Tue, 31 Mar 2026 17:50:09 +0200 Subject: default port 8880 --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index d30f292..bf616cb 100644 --- a/main.go +++ b/main.go @@ -15,7 +15,7 @@ import ( ) var ( - port = pflag.StringP("port", "p", "8080", "port to listen on") + port = pflag.StringP("port", "p", "8880", "port to listen on") host = pflag.StringP("host", "h", "0.0.0.0", "host to listen on") ) @@ -23,7 +23,7 @@ func main() { pflag.Parse() http.HandleFunc("GET /{$}", pages.Land) - http.HandleFunc("POST /", pages.Create) + http.HandleFunc("POST /{$}", pages.Create) http.HandleFunc("GET /l/{id}", pages.Get) storage.Current = sqlite.New() -- cgit v1.3