mirror of
https://github.com/Xevion/runnerspace.git
synced 2026-02-01 00:25:53 -06:00
protections added
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
from flask import Blueprint
|
||||
from flask_login import login_required, current_user
|
||||
from . import db
|
||||
|
||||
main = Blueprint('main', __name__)
|
||||
|
||||
@main.route('/')
|
||||
def index():
|
||||
# return render_template('index.html')
|
||||
return 'Index' # placeholder
|
||||
return render_template('index.html')
|
||||
|
||||
@main.route('/profile')
|
||||
@login_required
|
||||
def profile():
|
||||
# return render_template('profile.html')
|
||||
return 'Profile' # placeholder
|
||||
return render_template('profile.html', name=current_user.name)
|
||||
Reference in New Issue
Block a user