Skip to content
Snippets Groups Projects
Commit 910efdf7 authored by Patrick's avatar Patrick
Browse files

format code

parent cf2bf321
No related branches found
No related tags found
No related merge requests found
...@@ -37,18 +37,18 @@ func TestGoRestfulServerDeploySameUrl(t *testing.T) { ...@@ -37,18 +37,18 @@ func TestGoRestfulServerDeploySameUrl(t *testing.T) {
assert.NoError(t, err) assert.NoError(t, err)
grs.Start(url) grs.Start(url)
rmc := &config.RestMethodConfig{ rmc := &config.RestMethodConfig{
Produces: "*/*", Produces: "*/*",
Consumes: "*/*", Consumes: "*/*",
MethodType: "POST", MethodType: "POST",
Path: "/test", Path: "/test",
} }
f := func(request server.RestServerRequest, response server.RestServerResponse) {} f := func(request server.RestServerRequest, response server.RestServerResponse) {}
grs.Deploy(rmc, f) grs.Deploy(rmc, f)
rmc1 := &config.RestMethodConfig{ rmc1 := &config.RestMethodConfig{
Produces: "*/*", Produces: "*/*",
Consumes: "*/*", Consumes: "*/*",
MethodType: "GET", MethodType: "GET",
Path: "/test", Path: "/test",
} }
grs.Deploy(rmc1, f) grs.Deploy(rmc1, f)
grs.UnDeploy(rmc) grs.UnDeploy(rmc)
......
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