chore(site_domain): flesh out TODO stubs in legacy lookup routes
Uncommented and completed access_key + referrer handling in
lookup_site_domain_fqdn() and the GET /site/domain/fqdn/{fqdn} route.
These routes are disabled in registry.py and not currently active.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -77,18 +77,20 @@ async def patch_site_domain_obj(
|
||||
@router.get('/site/domain/fqdn/{fqdn}', response_model=Resp_Body_Base)
|
||||
async def lookup_site_domain_obj(
|
||||
fqdn: str,
|
||||
# x_account_id: str = Header(...),
|
||||
# response: Response = Response,
|
||||
|
||||
commons: Common_Route_Params_Min = Depends(common_route_params_min),
|
||||
# x_account_id: str = Header(...),
|
||||
# response: Response = Response,
|
||||
access_key: Optional[str] = Query(None, min_length=4, max_length=50),
|
||||
referrer: Optional[str] = Query(None, min_length=8, max_length=150),
|
||||
commons: Common_Route_Params_Min = Depends(common_route_params_min),
|
||||
):
|
||||
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(locals())
|
||||
|
||||
|
||||
# Updated 2021-12-13
|
||||
# Updated 2021-12-13
|
||||
if site_domain_rec_list_result := lookup_site_domain_fqdn(
|
||||
fqdn = fqdn,
|
||||
access_key = access_key,
|
||||
referrer = referrer,
|
||||
enabled = commons.enabled,
|
||||
limit = commons.limit,
|
||||
offset = commons.offset
|
||||
|
||||
Reference in New Issue
Block a user