2018-05-23 04:06:37 +02:00
|
|
|
import React from 'react';
|
|
|
|
import { Route, Switch } from 'react-router-dom';
|
|
|
|
|
|
|
|
import HomePage from '@pages/HomePage';
|
|
|
|
import AboutPage from '@pages/AboutPage';
|
2018-09-26 22:11:43 +02:00
|
|
|
import TosPage from '@pages/TosPage';
|
2018-10-17 23:04:14 +02:00
|
|
|
import FaqPage from '@pages/FaqPage';
|
2018-05-23 04:06:37 +02:00
|
|
|
import LoginPage from '@pages/LoginPage';
|
2018-06-01 01:39:35 +02:00
|
|
|
import ContentPageWrapper from '@pages/ContentPageWrapper';
|
2018-05-23 04:06:37 +02:00
|
|
|
import FourOhFourPage from '@pages/FourOhFourPage';
|
|
|
|
import MultisitePage from '@pages/MultisitePage';
|
2018-10-24 10:43:30 +02:00
|
|
|
import PopularPage from '@pages/PopularPage';
|
2018-05-23 04:06:37 +02:00
|
|
|
|
2018-06-06 22:45:54 +02:00
|
|
|
const App = () => {
|
2018-05-23 04:06:37 +02:00
|
|
|
return (
|
|
|
|
<Switch>
|
|
|
|
<Route exact path='/' component={HomePage} />
|
|
|
|
<Route exact path='/about' component={AboutPage} />
|
2018-09-26 22:11:43 +02:00
|
|
|
<Route exact path='/tos' component={TosPage} />
|
2018-10-17 23:04:14 +02:00
|
|
|
<Route exact path='/faq' component={FaqPage} />
|
2018-05-23 04:06:37 +02:00
|
|
|
<Route exact path='/login' component={LoginPage} />
|
|
|
|
<Route exact path='/multisite' component={MultisitePage} />
|
2018-10-24 10:43:30 +02:00
|
|
|
<Route exact path='/popular' component={PopularPage} />
|
2018-06-01 01:39:35 +02:00
|
|
|
<Route exact path='/:identifier/:claim' component={ContentPageWrapper} />
|
|
|
|
<Route exact path='/:claim' component={ContentPageWrapper} />
|
2018-05-23 04:06:37 +02:00
|
|
|
<Route component={FourOhFourPage} />
|
|
|
|
</Switch>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
2018-06-06 22:45:54 +02:00
|
|
|
export default App;
|