mirror of
https://github.com/hoshikawa2/rfp_response_automation.git
synced 2026-03-06 18:21:02 +00:00
first commit
This commit is contained in:
16
files/modules/home/routes.py
Normal file
16
files/modules/home/routes.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from flask import Blueprint, render_template
|
||||
from modules.core.security import requires_app_auth
|
||||
from config_loader import load_config
|
||||
|
||||
home_bp = Blueprint("home", __name__)
|
||||
config = load_config()
|
||||
API_BASE_URL = f"{config.app_base}:{config.service_port}"
|
||||
|
||||
@home_bp.route("/")
|
||||
@requires_app_auth
|
||||
def index():
|
||||
return render_template(
|
||||
"index.html",
|
||||
api_base_url=API_BASE_URL,
|
||||
config=config
|
||||
)
|
||||
Reference in New Issue
Block a user