class Controller(object): """API root controller for version 1.""" functions = function.FunctionsController() runtimes = runtime.RuntimesController() executions = execution.ExecutionsController() @wsme_pecan.wsexpose(RootResource) def index(self): return RootResource(uri='%s/%s' % (pecan.request.host_url, 'v1'))
class Controller(object): """API root controller for version 1.""" functions = function.FunctionsController() runtimes = runtime.RuntimesController() executions = execution.ExecutionsController() jobs = job.JobsController() webhooks = webhook.WebhooksController() aliases = function_alias.FunctionAliasesController() @wsme_pecan.wsexpose(RootResource) def index(self): return RootResource(uri='%s/%s' % (pecan.request.application_url, 'v1'))