diff options
author | pacien | 2021-07-25 21:53:59 +0200 |
---|---|---|
committer | pacien | 2021-07-25 21:53:59 +0200 |
commit | 7f11aa00673b0f77523db44969699c54289ace5b (patch) | |
tree | 77ed092b04460e263532d76843945a05a1229d58 /app/app.py | |
parent | 1a74f19cd68e3b7264621e7231475c6b25505e6d (diff) | |
download | uge_l2_rdbms_python_proto-7f11aa00673b0f77523db44969699c54289ace5b.tar.gz |
app: working web prototype
Diffstat (limited to 'app/app.py')
-rw-r--r-- | app/app.py | 17 |
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 | |||
5 | from fastapi import FastAPI, status | ||
6 | import app_sessions | ||
7 | import app_account | ||
8 | import app_wallet | ||
9 | |||
10 | main = FastAPI() | ||
11 | |||
12 | # Add sessions based on signed cookies. | ||
13 | main.add_middleware(app_sessions.SessionManager) | ||
14 | |||
15 | # Register our request handlers | ||
16 | main.include_router(app_account.router) | ||
17 | main.include_router(app_wallet.router) | ||