All checks were successful
Build and Deploy / deploy (push) Successful in 49s
- main.py: neutral API description (remove 'sales demo') - base.html: 'Open Banking Demo' nav, neutral footer - demo.py: /debug-session gated behind DEMO_MODE, all print() → logging, webhook receiver has C# signature verification example + Tink docs link, removed duplicate import - demo_data.py: all hardcoded 2026 dates replaced with dynamic date helpers - step2.html: external_user_id terminology (remove tink_external_ref) - step.html: sandbox note on Step 3 (anonymous vs production flow) - step6.html: 'Next Steps' section for C#/.NET implementation
29 lines
683 B
Python
29 lines
683 B
Python
"""
|
|
FastAPI application entry point.
|
|
"""
|
|
|
|
from fastapi import FastAPI
|
|
from fastapi.staticfiles import StaticFiles
|
|
from starlette.middleware.sessions import SessionMiddleware
|
|
|
|
from src.config import get_settings
|
|
from src.routes.demo import router
|
|
|
|
settings = get_settings()
|
|
|
|
app = FastAPI(
|
|
title="Tink API Demo",
|
|
description="Tink Open Banking API — integration walkthrough covering auth, users, accounts (v2), transactions (v2) and webhooks.",
|
|
version="1.0.0",
|
|
)
|
|
|
|
app.add_middleware(
|
|
SessionMiddleware,
|
|
secret_key=settings.session_secret,
|
|
max_age=3600,
|
|
)
|
|
|
|
app.include_router(router)
|
|
|
|
app.mount("/static", StaticFiles(directory="src/static"), name="static")
|