summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-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()