import { About } from 'pages/About/About.controller' ; import { Certificate } from 'pages/Certificate/Certificate.controller' ; import { ChangePassword } from 'pages/ChangePassword/ChangePassword.controller' ; import { Chapter } from 'pages/Chapter/Chapter.controller' ; import { Courses } from 'pages/Courses/Courses.controller' ; import { Error404 } from 'pages/Error404/Error404.controller' ; import { ForgotPassword } from 'pages/ForgotPassword/ForgotPassword.controller' ; import { Home } from 'pages/Home/Home.controller' ; import { Login } from 'pages/Login/Login.controller' ; import { ResetPassword } from 'pages/ResetPassword/ResetPassword.controller' ; import { SignUp } from 'pages/SignUp/SignUp.controller' ; import { Terms } from 'pages/Terms/Terms.controller' ; import { Token } from 'pages/Token/Token.controller' ; import { User } from 'pages/User/User.controller' ; import React from 'react' ; import { Route , Switch } from 'react-router-dom' ; import { Ocean101Course , IntroToDataDefiCourse , ComputeToDataCourse } from 'pages/Course/Course.controller' ; export const AppRoutes = ( { location } ) => ( < Switch location = { location } > < Route exact path = "/" > < Home /> < /Route> < Route exact path = "/sign-up" > < SignUp /> < /Route> < Route exact path = "/login" > < Login /> < /Route> < Route exact path = "/forgot-password" > < ForgotPassword /> < /Route> < Route exact path = "/reset-password/:token" > < ResetPassword /> < /Route> < Route exact path = "/change-password" > < ChangePassword /> < /Route> < Route path = "/browse-courses" > < Courses /> < /Route> < Route exact path = "/ocean101" > < Ocean101Course /> < /Route> < Route exact path = "/introToDataDefi" > < IntroToDataDefiCourse /> < /Route> < Route exact path = "/ComputeToData" > < ComputeToDataCourse /> < /Route> < Route path = "/*/chapter-*" > < Chapter /> < /Route> < Route exact path = "/user/:username" > < User /> < /Route> < Route exact path = "/certificate/:username" > < Certificate /> < /Route> < Route exact path = "/token/:username" > < Token /> < /Route> < Route exact path = "/about" > < About /> < /Route> < Route exact path = "/terms" > < Terms /> < /Route> < Route > < Error404 /> < /Route> < /Switch>);