2018-04-27 08:42:22 +02:00
|
|
|
const handlePageRequest = require('../../controllers/pages/sendReactApp');
|
|
|
|
const handleEmbedRequest = require('../../controllers/pages/sendEmbedPage');
|
2018-04-27 23:29:00 +02:00
|
|
|
const redirect = require('../../controllers/utils/redirect');
|
2018-03-29 18:48:32 +02:00
|
|
|
|
2018-03-29 20:40:47 +02: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-10 08:52:43 +02:00
|
|
|
app.get('/multisite', handlePageRequest);
|
2018-03-29 20:40:47 +02:00
|
|
|
app.get('/embed/:claimId/:name', handleEmbedRequest); // route to send embedable video player (for twitter)
|
2018-03-29 18:48:32 +02:00
|
|
|
};
|