Work on header validation

This commit is contained in:
Scott Idem
2022-01-05 13:50:12 -05:00
parent 3cfc8a69dc
commit 9a51e75892
3 changed files with 50 additions and 29 deletions

View File

@@ -14,7 +14,7 @@ from sqlalchemy import create_engine, text
from sqlalchemy.exc import IntegrityError, OperationalError
from . import config
# from app.lib_general import log, logging
from app.lib_general import get_account_header
from app.log import log, logging
# Import the routers here first:
@@ -82,6 +82,7 @@ app.include_router(
account.router,
prefix='/account',
tags=['Account'],
dependencies=[Depends(get_account_header)],
)
app.include_router(
activity_log.router,
@@ -92,6 +93,7 @@ app.include_router(
address.router,
prefix='/address',
tags=['Address'],
dependencies=[Depends(get_account_header)],
)
app.include_router(
archive.router,
@@ -107,6 +109,7 @@ app.include_router(
contact.router,
prefix='/contact',
tags=['Contact'],
dependencies=[Depends(get_account_header)],
)
app.include_router(
cont_edu_cert.router,
@@ -230,6 +233,7 @@ app.include_router(
app.include_router(
membership_person.router,
tags=['Membership Person'],
dependencies=[Depends(get_account_header)],
)
app.include_router(
membership_type.router,
@@ -268,11 +272,13 @@ app.include_router(
person.router,
# prefix='/person',
tags=['Person'],
# dependencies=[Depends(get_account_header)],
)
app.include_router(
person_user.router,
prefix='/person_user',
tags=['Person User'],
dependencies=[Depends(get_account_header)],
)
app.include_router(
post.router,