We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b05c19 commit 6259f67Copy full SHA for 6259f67
swagger_py_codegen/templates/falcon/app.tpl
@@ -4,7 +4,7 @@ from __future__ import absolute_import, print_function
4
import falcon
5
from wsgiref import simple_server
6
7
-import backend
+import {{blueprint}}
8
9
10
class NotFoundError(object):
@@ -42,7 +42,7 @@ def create_app():
42
43
44
def register_routes(app):
45
- for route in backend.routes:
+ for route in {{blueprint}}.routes:
46
url = '{prefix}{base_url}'.format(prefix='{{base_path}}',
47
base_url=route.pop('url'))
48
app.add_route(url, route.pop('resource'))
0 commit comments