const SubredditTarget = require('route_targets/subreddit.js');

const Routes = {
  '/': {
    target: SubredditTarget,
    '/': 'view',
  },
  '/r/:subreddit': {
    target: SubredditTarget,
    '/': 'view',
    '/:sort': {
      '/': 'view',
      '/:time': 'view'
    }
  },
  '/:sort': {
    target: SubredditTarget,
    '/': 'view',
    '/:time': 'view'
  }
};

export default Routes;

const SubredditTarget = require('route_targets/subreddit.js');

const Routes = {
  '/r': {
    target: SubredditTarget,
    '/:subreddit': {
      '/': 'view',
      '/:sort': {
        '/': 'view',
        '/:time': 'view'
      }
    }
  },
  '/': {
    target: SubredditTarget,
    '/': 'view'
  },
  '/:sort': {
    target: SubredditTarget,
    '/': 'view',
    '/:time': 'view'
  }
};

export default Routes;

Fix routing for sort on front page
Fix routing for sort on front page
