client frontend added

This commit is contained in:
2025-05-19 23:12:23 +03:00
parent 5f7cb35ccc
commit fdf9d2edb8
507 changed files with 40655 additions and 510 deletions

View File

@@ -22,7 +22,9 @@ def authentication_page_valid(data: RequestApplication, headers: CommonHeaders =
Verify if page is valid returns application that can user reach
page: { url = /building/create} | result: { "application": "4c11f5ef-0bbd-41ac-925e-f79d9aac2b0e" }
"""
return PageHandlers.retrieve_valid_page_via_token(access_token=headers.token, page_url=data.page)
list_of = PageHandlers.retrieve_valid_page_via_token(access_token=headers.token, page_url=data.page)
print('list_of', list_of)
return {"completed": True, "application": list_of}
application_retrieve_all_sites = "ApplicationRetrieveAllSites"
@@ -36,4 +38,6 @@ def authentication_get_all_sites_list(headers: CommonHeaders = Depends(CommonHea
"""
Verify if page is valid returns application that can user reach result: { "sites": ['/dashboard', '/building/create'] }
"""
return PageHandlers.retrieve_valid_sites_via_token(access_token=headers.token)
list_of_application_url = PageHandlers.retrieve_valid_sites_via_token(access_token=headers.token)
print('list_of_application_url', list(list_of_application_url))
return {"completed": True, "sites": list(list_of_application_url)}