Skip to content

Commit

Permalink
updated routes
Browse files Browse the repository at this point in the history
  • Loading branch information
erikawyt authored Mar 5, 2022
1 parent 02b504b commit 25f814d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ import Login from './pages/Login';
import Error from './pages/Error';
import AddEducation from './pages/AddEducation';
import EditEducation from './pages/EditEducation';
import Education from './pages/Education';
import CommonInfections from './pages/CommonInfections';
import IV_Access from './pages/IV_Access';
import Medications from './pages/Medications';

function App() {
return (
Expand All @@ -36,7 +40,10 @@ function App() {
{/* <Route path='/admin-menu/education/edit-education/:id' element={<EditEdicationDetails />} /> */}
{/*<Route path='/admin-menu/contactus' element={<ViewAllContactUs />} />
<Route path='/admin-menu/contactus/:id' element={<ContactUsDetails />} />*/}

<Route path='/education' element={<Education />} />
<Route path='/education/common-infections' element={<CommonInfections />} />
<Route path='/education/iv-access' element={<IV_Access />} />
<Route path='/education/medications' element={<Medications />} />
<Route path='/admin-menu' element={<RequireAuth><AdminHome /></RequireAuth>} />
<Route path='/admin-menu/survey/create-survey' element={<RequireAuth><AddSurvey /></RequireAuth>} />
<Route path='/admin-menu/survey/edit-survey' element={<RequireAuth><EditSurvey /></RequireAuth>} />
Expand Down

0 comments on commit 25f814d

Please sign in to comment.