aboutsummaryrefslogtreecommitdiff
path: root/app/app.py
diff options
context:
space:
mode:
authorpacien2021-07-25 21:53:59 +0200
committerpacien2021-07-25 21:53:59 +0200
commit7f11aa00673b0f77523db44969699c54289ace5b (patch)
tree77ed092b04460e263532d76843945a05a1229d58 /app/app.py
parent1a74f19cd68e3b7264621e7231475c6b25505e6d (diff)
downloaduge_l2_rdbms_python_proto-7f11aa00673b0f77523db44969699c54289ace5b.tar.gz
app: working web prototype
Diffstat (limited to 'app/app.py')
-rw-r--r--app/app.py17
1 files changed, 17 insertions, 0 deletions
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 @@
1# UGE / L2 / Intro to relational databases / Python project prototype
2# Author: Pacien TRAN-GIRARD
3# Licence: EUPL-1.2
4
5from fastapi import FastAPI, status
6import app_sessions
7import app_account
8import app_wallet
9
10main = FastAPI()
11
12# Add sessions based on signed cookies.
13main.add_middleware(app_sessions.SessionManager)
14
15# Register our request handlers
16main.include_router(app_account.router)
17main.include_router(app_wallet.router)