summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-03-31 17:50:09 +0200
committerewy <ewy0@protonmail.com>2026-03-31 17:50:09 +0200
commitd4e6d4905b1074ebcb6d082fadf50cc2ed80493d (patch)
treea66365c68ba90a87488400fe6df4214dab89561c
parentfea44dc8254fa8400362318411aafe2881340d8e (diff)
default port 8880
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
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()