20 lines
258 B
Go
20 lines
258 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"gosvc/httpserver"
|
|
)
|
|
|
|
func (s *Service) RegisterRouteRules() {
|
|
s.HTTPServer.RegisterRouteRules(
|
|
[]*httpserver.RouteRule{
|
|
{
|
|
Path: "/ping",
|
|
Method: http.MethodGet,
|
|
Handler: s.API_Ping,
|
|
},
|
|
},
|
|
)
|
|
}
|