Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit

Permalink
Merge pull request #4 from abhaga/patch-1
Browse files Browse the repository at this point in the history
Handling multiple views for same route
  • Loading branch information
atlithorn committed Mar 10, 2015
2 parents d7c9a50 + 4e85ce6 commit 06c00ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flask_swagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,8 @@ def spec():
rule = str(rule)
for arg in re.findall('(<(.*?\:)?(.*?)>)', rule):
rule = rule.replace(arg[0], '{%s}' % arg[2])
paths[rule] = operations
if rule in paths:
paths[rule].update(operations)
else:
paths[rule] = operations
return output

0 comments on commit 06c00ec

Please sign in to comment.