Skip to content

Instantly share code, notes, and snippets.

@allensb
Created May 7, 2015 01:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allensb/fbcf73b0d680d34e65ab to your computer and use it in GitHub Desktop.
Save allensb/fbcf73b0d680d34e65ab to your computer and use it in GitHub Desktop.
from flask import render_template, Blueprint
def add_routes(app=None):
blueprint = Blueprint('admin', __name__, static_url_path='/admin/content', static_folder='./content',
template_folder='./templates')
@blueprint.route('/Admin', methods=['GET'])
def admin():
return render_template('login.html')
app.register_blueprint(blueprint)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment