def login(): if session['user']['check'] == False: return render_template('user/login.html', user=session['user'], csrf_token=csrf_start(session)) else: return redirect('/user/home')
def pppp(id): d = get_news_p(id) # print(d) if d['status']: return render_template('news/p.html', data=d, user=session['user'], csrf_token=csrf_start(session=session)) else: return re_json('failed', 'not found news')
def user_home(): return render_template('user/home.html', user=session['user'], csrf_token=csrf_start(session))
def test(): return render_template('test.html', csrf_token=csrf_start(session))
def index(): return render_template('index.html', user=session['user'], csrf_token=csrf_start(session))