Рефакторинг
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
from flask import Flask, redirect, render_template, url_for, session, request
|
||||
from os import path
|
||||
from flask import Flask, render_template, session
|
||||
from Queries.req import requests_bp
|
||||
from Auth.auth_route import auth_bp
|
||||
from checker import check_auth
|
||||
|
||||
app = Flask(__name__)
|
||||
app.secret_key = 'super secret key'
|
||||
app.secret_key = 'suplex'
|
||||
|
||||
app.register_blueprint(requests_bp, url_prefix='/requests')
|
||||
app.register_blueprint(auth_bp, url_prefix='/auth')
|
||||
@@ -13,7 +12,7 @@ app.register_blueprint(auth_bp, url_prefix='/auth')
|
||||
@app.route('/')
|
||||
@check_auth
|
||||
def index():
|
||||
return "YATTA"
|
||||
return render_template('index.html')
|
||||
|
||||
@app.route('/logout')
|
||||
@check_auth
|
||||
|
||||
Reference in New Issue
Block a user