Initial
This commit is contained in:
11
internal/httpapi/router.go
Normal file
11
internal/httpapi/router.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package httpapi
|
||||
|
||||
import "net/http"
|
||||
|
||||
// NewUsmerjevalnik pripravi vse API poti za status endpointe.
|
||||
func NewUsmerjevalnik(handler *Handler) *http.ServeMux {
|
||||
mux := http.NewServeMux()
|
||||
mux.HandleFunc("/api/status", handler.obravnavajStatusRoot)
|
||||
mux.HandleFunc("/api/status/", handler.obravnavajStatusPoPoti)
|
||||
return mux
|
||||
}
|
||||
Reference in New Issue
Block a user