aboutsummaryrefslogtreecommitdiff
path: root/app/app.py
blob: 3bf03370cbee260f2be5add381fb02a72020b080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)