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