Skip to content

Commit

Permalink
rename route.go
Browse files Browse the repository at this point in the history
  • Loading branch information
hwchiu committed Jun 21, 2018
1 parent 97bc9f8 commit 2ce8aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func newNetworkService(sp *serviceprovider.Container) *restful.WebService {

func newStorageProviderService(sp *serviceprovider.Container) *restful.WebService {
webService := new(restful.WebService)
webService.Path("/v1/provisioner").Consumes(restful.MIME_JSON, restful.MIME_JSON).Produces(restful.MIME_JSON, restful.MIME_JSON)
webService.Path("/v1/storageprovider").Consumes(restful.MIME_JSON, restful.MIME_JSON).Produces(restful.MIME_JSON, restful.MIME_JSON)
webService.Route(webService.POST("/").To(handler.RESTfulServiceHandler(sp, CreateStorageProvider)))
return webService
}

0 comments on commit 2ce8aec

Please sign in to comment.