Skip to content
Snippets Groups Projects
Commit 85824b9e authored by Patrick's avatar Patrick
Browse files

remove new function

parent 5e206192
No related branches found
No related tags found
No related merge requests found
...@@ -83,7 +83,7 @@ func (grs *GoRestfulServer) Start(url common.URL) { ...@@ -83,7 +83,7 @@ func (grs *GoRestfulServer) Start(url common.URL) {
// Publish a http api in go-restful server // Publish a http api in go-restful server
// The routeFunc should be invoked when the server receive a request // The routeFunc should be invoked when the server receive a request
func (grs *GoRestfulServer) Deploy(restMethodConfig *config.RestMethodConfig, routeFunc func(request server.RestServerRequest, response server.RestServerResponse)) { func (grs *GoRestfulServer) Deploy(restMethodConfig *config.RestMethodConfig, routeFunc func(request server.RestServerRequest, response server.RestServerResponse)) {
ws := new(restful.WebService) ws := &restful.WebService{}
rf := func(req *restful.Request, resp *restful.Response) { rf := func(req *restful.Request, resp *restful.Response) {
routeFunc(NewGoRestfulRequestAdapter(req), resp) routeFunc(NewGoRestfulRequestAdapter(req), resp)
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment