X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b3a016e9a47d453b5ae4d287d8b6eaafd69971df..8b43f32b2c11d45f951bf4ff1bffab03d391ff41:/lib/controller/router/router.go diff --git a/lib/controller/router/router.go b/lib/controller/router/router.go index 9c2c1f3a11..d3bdce5272 100644 --- a/lib/controller/router/router.go +++ b/lib/controller/router/router.go @@ -40,6 +40,20 @@ func (rtr *router) addRoutes() { defaultOpts func() interface{} exec routableFunc }{ + { + arvados.EndpointConfigGet, + func() interface{} { return &struct{}{} }, + func(ctx context.Context, opts interface{}) (interface{}, error) { + return rtr.fed.ConfigGet(ctx) + }, + }, + { + arvados.EndpointLogin, + func() interface{} { return &arvados.LoginOptions{} }, + func(ctx context.Context, opts interface{}) (interface{}, error) { + return rtr.fed.Login(ctx, *opts.(*arvados.LoginOptions)) + }, + }, { arvados.EndpointCollectionCreate, func() interface{} { return &arvados.CreateOptions{} }, @@ -256,7 +270,7 @@ func (rtr *router) addRoute(endpoint arvados.APIEndpoint, defaultOpts func() int rtr.sendError(w, err) return } - rtr.sendResponse(w, resp, respOpts) + rtr.sendResponse(w, req, resp, respOpts) }) }