Browse Source

added method to the url

master
Julio Biason 11 years ago
parent
commit
1e6cfc3b38
  1. 4
      luncho/server.py

4
luncho/server.py

@ -205,15 +205,15 @@ def show_api():
continue
path = str(rule)
# methods = rule.methods
doc = app.view_functions[endpoint].__doc__
# make the doc a little more... pretty
summary = doc.split('\n\n')[0]
summary = ' '.join(line.strip() for line in summary.split('\n'))
for method in rule.methods:
routes.append([
path,
rule.methods.upper() + ' ' + path,
summary
])

Loading…
Cancel
Save