forked from CSI-KJSCE/appointment_to_examiner
token refresher
This commit is contained in:
@@ -13,9 +13,12 @@ import CourseTable from "./Pages/CourseTable";
|
||||
import ConsolidatedTable from "./Pages/ConsolidatedTable";
|
||||
import CourseConsolidated from "./Pages/courseConsolidated";
|
||||
import PrivateRoute from "./components/PrivateRoute";
|
||||
import TokenRefresher from "./components/TokenRefresher";
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<>
|
||||
<TokenRefresher />
|
||||
<Routes>
|
||||
<Route path="/" element={<AuthPage />}></Route>
|
||||
<Route path="/course-form/:id" element={<PrivateRoute element={<CourseForm />} />} />
|
||||
@@ -28,6 +31,7 @@ function App() {
|
||||
<Route path="/consolidated" element={<PrivateRoute element={<ConsolidatedTable />} />} />
|
||||
<Route path="/courseConsolidated" element={<PrivateRoute element={<CourseConsolidated />} />} />
|
||||
</Routes>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user