Skip to content

Commit 147aaf8

Browse files
authored
Merge pull request #115 from guokr/113_fix_sanic_url_prefix
#113 fix sanic url_prefix
2 parents 683e92a + 3b64d12 commit 147aaf8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.gitignore

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

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

109-
.DS_Store
110-
111110
# End of https://www.gitignore.io/api/python

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)