Skip to content

Commit fe867b3

Browse files
committed
#113 fix sanic url_prefix
1 parent 155d7ff commit fe867b3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ pip-selfcheck.json
103103
# mkdocs documentation
104104
/site
105105

106+
*.DS_Store
106107
*.swp
107108
example-app
108109

swagger_py_codegen/templates/sanic/blueprint.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ from .validators import security
1111
def current_scopes(request):
1212
return {{ scopes_supported }}
1313

14-
bp = Blueprint('{{ blueprint }}', __name__)
14+
bp = Blueprint('{{ blueprint }}', url_prefix='/{{ blueprint }}')
1515

1616
for route in routes:
1717
route.pop('endpoint', None)

0 commit comments

Comments
 (0)