Browse Source

pep8

master
Julio Biason 11 years ago
parent
commit
63d66e4b5f
  1. 5
      luncho/blueprints/index.py

5
luncho/blueprints/index.py

@ -12,7 +12,8 @@ from flask import current_app
index = Blueprint('index', __name__) index = Blueprint('index', __name__)
@index.route('')
@index.route('', methods=['GET'])
def show_routes(): def show_routes():
"""List the current API""" """List the current API"""
routes = [] routes = []
@ -24,7 +25,7 @@ def show_routes():
continue continue
path = str(rule) path = str(rule)
methods = rule.methods # methods = rule.methods
doc = current_app.view_functions[endpoint].__doc__ doc = current_app.view_functions[endpoint].__doc__
routes.append([ routes.append([

Loading…
Cancel
Save