feat: prometheus metrics

This commit is contained in:
raf 2023-09-07 22:09:24 +03:00
commit afabaec45b
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
7 changed files with 120 additions and 17 deletions

View file

@ -9,7 +9,9 @@ import (
func NewRouter() http.Handler {
r := mux.NewRouter()
r.HandleFunc("/", paste.CreatePasteHandler).Methods("POST")
r.HandleFunc("/{id}", paste.GetPasteHandler).Methods("GET")
return r
}