Skip to content

Commit 6259f67

Browse files
committed
fixbug
1 parent 2b05c19 commit 6259f67

File tree

1 file changed

+2
-2
lines changed
  • swagger_py_codegen/templates/falcon

1 file changed

+2
-2
lines changed

swagger_py_codegen/templates/falcon/app.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ from __future__ import absolute_import, print_function
44
import falcon
55
from wsgiref import simple_server
66

7-
import backend
7+
import {{blueprint}}
88

99

1010
class NotFoundError(object):
@@ -42,7 +42,7 @@ def create_app():
4242

4343

4444
def register_routes(app):
45-
for route in backend.routes:
45+
for route in {{blueprint}}.routes:
4646
url = '{prefix}{base_url}'.format(prefix='{{base_path}}',
4747
base_url=route.pop('url'))
4848
app.add_route(url, route.pop('resource'))

0 commit comments

Comments
 (0)