routes
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
Wolfgang Hottgenroth 2025-03-12 13:23:24 +01:00
parent aa4c307048
commit 7ff1b70098
3 changed files with 11 additions and 2 deletions

View File

@ -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
View File

@ -0,0 +1,8 @@
from flask import abort
from app import app
from app import oidc
@app.route('/')
def index():
abort(404)

View File

@ -3,6 +3,7 @@ from loguru import logger
from app import app
import routes
import debug_routes
import pv_routes
import ntp_routes