INIT Commit

This commit is contained in:
Michal Kváček
2023-06-05 09:55:17 +02:00
commit 014a999055
46 changed files with 1645 additions and 0 deletions
View File
+7
View File
@@ -0,0 +1,7 @@
from database import async_session
async def db_session():
async with async_session() as session:
async with session.begin():
yield session
+10
View File
@@ -0,0 +1,10 @@
# from fastapi import Depends, Security
# from fastapi_jwt import JwtAuthorizationCredentials
#
#
# async def check_jwt_token():
# authorize.jwt_required()
#
# subject = authorize.get_jwt_subject()
#
# print("Subject: ", subject)