示例#1
0
文件: deployment.py 项目: mfwarren/mu
 def load(self):
     # load the app
     return util.import_app(self.app_uri)
示例#2
0
 def __call__(self, event, context):
     request = Request()
     response = Response()
     api = util.import_app(event['_app_module'])
     getattr(api.routes[event['_resource_path']], HTTP_METHODS[event['_http_method']])(request, response)
     return response.body  # TODO: reformat to JSON for HTTP Headers
示例#3
0
文件: deployment.py 项目: mfwarren/mu
 def load(self):
     # load the app
     return util.import_app(self.app_uri)