mirror of
https://github.com/skidoodle/pastebin
synced 2025-10-14 09:44:48 +02:00
implement dynamic theming
This commit is contained in:
1
main.go
1
main.go
@@ -21,6 +21,7 @@ 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)
|
||||
|
||||
slog.Info("starting http server on", "addr", addr)
|
||||
err := http.ListenAndServe(addr, mux)
|
||||
|
||||
Reference in New Issue
Block a user