2018-04-26 23:42:22 -07:00
|
|
|
const handlePageRequest = require('../../controllers/pages/sendReactApp');
|
2018-06-25 19:04:17 -07:00
|
|
|
const handleVideoEmbedRequest = require('../../controllers/pages/sendVideoEmbedPage');
|
2018-04-27 14:29:00 -07:00
|
|
|
const redirect = require('../../controllers/utils/redirect');
|
2018-03-29 09:48:32 -07:00
|
|
|
|
2018-03-29 11:40:47 -07:00
|
|
|
module.exports = (app) => {
|
|
|
|
app.get('/', handlePageRequest);
|
|
|
|
app.get('/login', handlePageRequest);
|
|
|
|
app.get('/about', handlePageRequest);
|
|
|
|
app.get('/trending', redirect('/popular'));
|
|
|
|
app.get('/popular', handlePageRequest);
|
|
|
|
app.get('/new', handlePageRequest);
|
2018-05-09 23:52:43 -07:00
|
|
|
app.get('/multisite', handlePageRequest);
|
2018-06-25 19:04:17 -07:00
|
|
|
app.get('/video-embed/:name/:claimId', handleVideoEmbedRequest); // for twitter
|
2018-03-29 09:48:32 -07:00
|
|
|
};
|