Skip to content

Commit

Permalink
remove filter
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Lin committed Aug 28, 2018
1 parent 9957013 commit c07c047
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 @@ -37,7 +37,7 @@ func (a *App) AppRoute() *mux.Router {
func newVersionService(sp *serviceprovider.Container) *restful.WebService {
webService := new(restful.WebService)
webService.Path("/v1/version").Consumes(restful.MIME_JSON, restful.MIME_JSON).Produces(restful.MIME_JSON, restful.MIME_JSON)
webService.Route(webService.GET("/").Filter(validateTokenMiddleware).Filter(requiredRootRoleMiddleware).To(handler.RESTfulServiceHandler(sp, versionHandler)))
webService.Route(webService.GET("/").To(handler.RESTfulServiceHandler(sp, versionHandler)))
return webService
}

Expand Down

0 comments on commit c07c047

Please sign in to comment.