ManageCoursePage route

master
Tudor Stanciu 2020-04-11 23:32:21 +03:00
parent d29de78333
commit 3a6fcd1637
1 changed files with 3 additions and 0 deletions

View File

@ -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>