feat: prometheus metrics
This commit is contained in:
parent
c8e82d5d43
commit
afabaec45b
7 changed files with 120 additions and 17 deletions
|
@ -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
|
||||
}
|
||||
|
|
Reference in a new issue