2018-04-27 08:42:22 +02:00
|
|
|
const handlePageRequest = require('../../controllers/pages/sendReactApp');
|
2018-06-26 04:04:17 +02:00
|
|
|
const handleVideoEmbedRequest = require('../../controllers/pages/sendVideoEmbedPage');
|
2018-04-27 23:29:00 +02:00
|
|
|
const redirect = require('../../controllers/utils/redirect');
|
2018-03-29 18:48:32 +02:00
|
|
|
|
2018-10-09 02:02:05 +02:00
|
|
|
// TODO: Adjust build & sources to use import/export everywhere
|
|
|
|
const Actions = require('@actions').default;
|
|
|
|
const Sagas = require('@sagas').default;
|
|
|
|
|
2018-09-28 05:56:10 +02:00
|
|
|
module.exports = {
|
2018-10-09 02:02:05 +02:00
|
|
|
'/': { controller: handlePageRequest, action: Actions.onHandleShowHomepage, saga: Sagas.handleShowHomepage },
|
2018-09-28 05:56:10 +02:00
|
|
|
'/login': { controller: handlePageRequest },
|
|
|
|
'/about': { controller: handlePageRequest },
|
2018-10-08 19:16:12 +02:00
|
|
|
'/tos': { controller: handlePageRequest },
|
2018-10-17 23:04:14 +02:00
|
|
|
'/faq': { controller: handlePageRequest },
|
2018-09-28 05:56:10 +02:00
|
|
|
'/trending': { controller: redirect('/popular') },
|
|
|
|
'/popular': { controller: handlePageRequest },
|
|
|
|
'/new': { controller: handlePageRequest },
|
|
|
|
'/multisite': { controller: handlePageRequest },
|
|
|
|
'/video-embed/:name/:claimId': { controller: handleVideoEmbedRequest }, // for twitter
|
2018-03-29 18:48:32 +02:00
|
|
|
};
|