routes
This commit is contained in:
parent
aa4c307048
commit
7ff1b70098
@ -12,9 +12,9 @@ from app import app
|
||||
from app import oidc
|
||||
|
||||
|
||||
@app.route('/')
|
||||
@app.route('/pvstats')
|
||||
@oidc.require_login
|
||||
def index():
|
||||
def pvstats():
|
||||
try:
|
||||
stepX_time = time.time()
|
||||
dbh = psycopg.connect()
|
||||
|
8
src/routes.py
Normal file
8
src/routes.py
Normal file
@ -0,0 +1,8 @@
|
||||
from flask import abort
|
||||
from app import app
|
||||
from app import oidc
|
||||
|
||||
|
||||
@app.route('/')
|
||||
def index():
|
||||
abort(404)
|
@ -3,6 +3,7 @@ from loguru import logger
|
||||
|
||||
from app import app
|
||||
|
||||
import routes
|
||||
import debug_routes
|
||||
import pv_routes
|
||||
import ntp_routes
|
||||
|
Loading…
x
Reference in New Issue
Block a user