ManageCoursePage route
parent
d29de78333
commit
3a6fcd1637
|
@ -5,6 +5,7 @@ import AboutPage from "./about/AboutPage";
|
|||
import Header from "./common/Header";
|
||||
import PageNotFound from "./PageNotFound";
|
||||
import CoursesPage from "./courses/CoursesPage";
|
||||
import ManageCoursePage from "./courses/ManageCoursePage";
|
||||
|
||||
function App() {
|
||||
return (
|
||||
|
@ -14,6 +15,8 @@ function App() {
|
|||
<Route exact path="/" component={HomePage} />
|
||||
<Route path="/about" component={AboutPage} />
|
||||
<Route path="/courses" component={CoursesPage} />
|
||||
<Route path="/course/:slug" component={ManageCoursePage} />
|
||||
<Route path="/course" component={ManageCoursePage} />
|
||||
<Route component={PageNotFound} />
|
||||
</Switch>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue