mirror of
https://github.com/skidoodle/pastebin
synced 2025-10-14 09:44:48 +02:00
fix handler patterns
This commit is contained in:
4
main.go
4
main.go
@@ -37,8 +37,8 @@ func main() {
|
||||
})
|
||||
mux.HandleFunc("GET /", httpHandler.HandleHome)
|
||||
mux.HandleFunc("POST /", httpHandler.HandleSet)
|
||||
mux.HandleFunc("GET /{id}", httpHandler.HandleGet)
|
||||
mux.HandleFunc("GET /{id}/{theme}", httpHandler.HandleGet)
|
||||
mux.HandleFunc("GET /{id}/", httpHandler.HandleGet)
|
||||
mux.HandleFunc("GET /{id}/{theme}/", httpHandler.HandleGet)
|
||||
|
||||
slog.Info("starting http server", "addr", cli.addr, "maxSize", cli.maxSize)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user