示例#1
0
文件: root.py 项目: sampathP/qinling
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'))
示例#2
0
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'))