diff options
| author | ewy <ewy0@protonmail.com> | 2026-03-31 17:50:09 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-03-31 17:50:09 +0200 |
| commit | d4e6d4905b1074ebcb6d082fadf50cc2ed80493d (patch) | |
| tree | a66365c68ba90a87488400fe6df4214dab89561c | |
| parent | fea44dc8254fa8400362318411aafe2881340d8e (diff) | |
default port 8880
| -rw-r--r-- | main.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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() |
