gohttpserver/httpserver/routes.go

10 lines
261 B
Go

package httpserver
import "github.com/gorilla/mux"
func (s *server) routes() {
s.router = mux.NewRouter()
s.router.HandleFunc("/", s.handleIndex()).Methods("GET")
s.router.HandleFunc("/.well-known/healthcheck.json", s.handleHealthCheck()).Methods("GET")
}