diff --git a/src/frontend/src/customization/hooks/use-custom-post-auth.ts b/src/frontend/src/customization/hooks/use-custom-post-auth.ts new file mode 100644 index 000000000..72d0f2dbc --- /dev/null +++ b/src/frontend/src/customization/hooks/use-custom-post-auth.ts @@ -0,0 +1,16 @@ +import { UseRequestProcessor } from "@/controllers/API/services/request-processor"; +import { useQueryFunctionType } from "@/types/api"; + +export const useCustomPostAuth: useQueryFunctionType = ( + options, +) => { + const { query } = UseRequestProcessor(); + + const getPostAuthFn = async () => { + return null; + }; + + const queryResult = query(["usePostAuth"], getPostAuthFn, options); + + return queryResult; +}; diff --git a/src/frontend/src/pages/AppAuthenticatedPage/index.tsx b/src/frontend/src/pages/AppAuthenticatedPage/index.tsx new file mode 100644 index 000000000..35902300d --- /dev/null +++ b/src/frontend/src/pages/AppAuthenticatedPage/index.tsx @@ -0,0 +1,8 @@ +import { useCustomPostAuth } from "@/customization/hooks/use-custom-post-auth"; +import { Outlet } from "react-router-dom"; + +export function AppAuthenticatedPage() { + useCustomPostAuth(); + + return ; +} diff --git a/src/frontend/src/routes.tsx b/src/frontend/src/routes.tsx index 913a19b64..af38687d5 100644 --- a/src/frontend/src/routes.tsx +++ b/src/frontend/src/routes.tsx @@ -14,6 +14,7 @@ import ContextWrapper from "./contexts"; import { CustomNavigate } from "./customization/components/custom-navigate"; import { BASENAME } from "./customization/config-constants"; import { ENABLE_CUSTOM_PARAM } from "./customization/feature-flags"; +import { AppAuthenticatedPage } from "./pages/AppAuthenticatedPage"; import { AppInitPage } from "./pages/AppInitPage"; import { AppWrapperPage } from "./pages/AppWrapperPage"; import { DashboardWrapperPage } from "./pages/DashboardWrapperPage"; @@ -57,102 +58,112 @@ const router = createBrowserRouter( } > - }> - }> - } /> - } - > + }> + }> + }> } + index + element={} /> - - - } - > } + > + + } + /> + + } - /> - - } - > + > + + } + /> + } - /> + > + } + /> + + + }> + } + /> + } + /> + } /> + + + + } + /> + } /> + } /> - - }> } - /> - } - /> - } /> - - - + + + + } + /> + + + + } + /> + + }> + + + + } /> - } /> - } /> - - - - } - /> - - - - } - /> - - }> + + }> + } /> + } /> + + } /> - - - - } - /> - - - }> - } /> - } /> + + } /> - } /> - - - } />