remove user routes, no need
parent
f88636c958
commit
a38706a357
@ -1,15 +0,0 @@
|
||||
from flask import Blueprint, render_template
|
||||
from flask import redirect, url_for
|
||||
|
||||
from tubbymemes.models import User
|
||||
|
||||
|
||||
bp = Blueprint('user', 'user')
|
||||
|
||||
|
||||
@bp.route('/user/<handle>')
|
||||
def show(handle):
|
||||
user = User.query.filter(User.handle == handle).first()
|
||||
if not user:
|
||||
return redirect(url_for('meme.index'))
|
||||
return render_template('profile.html', user=user)
|
Loading…
Reference in New Issue