'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

exports.default = function () {
  var history = arguments.length <= 0 || arguments[0] === undefined ? _reactRouter.browserHistory : arguments[0];

  return _react2.default.createElement(
    _reactRouter.Router,
    { history: history, onUpdate: function onUpdate() {
        return window.scrollTo(0, 0);
      } },
    _react2.default.createElement(
      _reactRouter.Route,
      { path: '/', component: _App2.default },
      _react2.default.createElement(_reactRouter.IndexRoute, { component: _Home2.default }),
      _react2.default.createElement(_reactRouter.Route, { path: 'category/:category', component: _Category2.default }),
      _react2.default.createElement(_reactRouter.Route, { path: 'topic/:topicId', component: _Topic2.default }),
      _react2.default.createElement(_reactRouter.Route, { path: 'tag/:tagId', component: _Tag2.default }),
      _react2.default.createElement(_reactRouter.Route, { path: 'photography', component: _Photography2.default }),
      _react2.default.createElement(_reactRouter.Route, { path: 'check', component: _Blank2.default }),
      _react2.default.createElement(_reactRouter.Route, { path: 'a/:slug', component: _Article2.default })
    )
  );
};

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _reactRouter = require('react-router');

var _App = require('../containers/App');

var _App2 = _interopRequireDefault(_App);

var _Article = require('../containers/Article');

var _Article2 = _interopRequireDefault(_Article);

var _Blank = require('../containers/Blank');

var _Blank2 = _interopRequireDefault(_Blank);

var _Category = require('../containers/Category');

var _Category2 = _interopRequireDefault(_Category);

var _Home = require('../containers/Home');

var _Home2 = _interopRequireDefault(_Home);

var _Photography = require('../containers/Photography');

var _Photography2 = _interopRequireDefault(_Photography);

var _Tag = require('../containers/Tag');

var _Tag2 = _interopRequireDefault(_Tag);

var _Topic = require('../containers/Topic');

var _Topic2 = _interopRequireDefault(_Topic);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }