package handler import ( "net/http" "zero/rest" ) func RegisterHandlers(engine *rest.Server) { engine.AddRoutes([]rest.Route{ { Method: http.MethodGet, Path: "/", Handler: GreetHandler, }, }) }