From 7f11aa00673b0f77523db44969699c54289ace5b Mon Sep 17 00:00:00 2001 From: pacien Date: Sun, 25 Jul 2021 21:53:59 +0200 Subject: app: working web prototype --- app/app.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 app/app.py (limited to 'app/app.py') diff --git a/app/app.py b/app/app.py new file mode 100644 index 0000000..3bf0337 --- /dev/null +++ b/app/app.py @@ -0,0 +1,17 @@ +# UGE / L2 / Intro to relational databases / Python project prototype +# Author: Pacien TRAN-GIRARD +# Licence: EUPL-1.2 + +from fastapi import FastAPI, status +import app_sessions +import app_account +import app_wallet + +main = FastAPI() + +# Add sessions based on signed cookies. +main.add_middleware(app_sessions.SessionManager) + +# Register our request handlers +main.include_router(app_account.router) +main.include_router(app_wallet.router) -- cgit v1.2.3