ws-host: add missing Produce
This commit is contained in:
@ -30,6 +30,7 @@ func (ws wsHost) register(rws *restful.WebService, alterRB func(*restful.RouteBu
|
|||||||
|
|
||||||
for _, rb := range []*restful.RouteBuilder{
|
for _, rb := range []*restful.RouteBuilder{
|
||||||
rws.GET("").To(ws.get).
|
rws.GET("").To(ws.get).
|
||||||
|
Produces(mime.JSON).
|
||||||
Doc("Get the "+ws.hostDoc+"'s details").
|
Doc("Get the "+ws.hostDoc+"'s details").
|
||||||
Returns(200, "OK", localconfig.Host{}),
|
Returns(200, "OK", localconfig.Host{}),
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user