Working on lookups

This commit is contained in:
Scott Idem
2021-04-29 18:21:35 -04:00
parent 576fa80a41
commit e3186ddc60
3 changed files with 58 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ from .lib_general import *
from .log import *
# Import the routers here first:
from .routers import api_crud, api, account, address, archive, archive_content, contact, event, event_exhibit, event_registration, event_session, flask_cfg, membership, order, order_cart, organization, page, person, post, post_comment, product, site, site_domain, user, user_person, websockets # , items, journals
from .routers import api_crud, api, account, address, archive, archive_content, contact, event, event_exhibit, event_registration, event_session, flask_cfg, lookup, membership, order, order_cart, organization, page, person, post, post_comment, product, site, site_domain, user, user_person, websockets # , items, journals
from .db_sql import db
@@ -142,6 +142,11 @@ app.include_router(
#dependencies=[Depends(get_account_header)],
#responses={404: {'description': 'Not found'}},
)
app.include_router(
lookup.router,
prefix='/lu',
tags=['Lookup'],
)
app.include_router(
membership.router,
prefix='/membership',
@@ -260,7 +265,9 @@ origins = [
'http://localhost:5000',
'http://fastapi.localhost:5000',
'http://demo.localhost:5000',
'http://localhost:7800',
'https://oneskyit.com',
'http://dev-idaa.localhost:5000'
]
app.add_middleware(