spee.ch/server/routes/pages/index.js
2018-06-25 18:42:30 -07:00

14 lines
648 B
JavaScript

const handlePageRequest = require('../../controllers/pages/sendReactApp');
// const handleEmbedRequest = require('../../controllers/pages/sendEmbedPage');
const redirect = require('../../controllers/utils/redirect');
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);
app.get('/multisite', handlePageRequest);
// app.get('/embed/:claimId/:name', handleEmbedRequest); // route to send embedable video player (for twitter)
};