-
-
Save allensb/fbcf73b0d680d34e65ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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