content: /* eslint-disable react/jsx-filename-extension */
  import { Route, IndexRedirect } from 'react-router';
  import React from 'react';
  import { AppController } from 'components/admin/AppController';
  import { ArticleListController } from 'components/admin/ArticleListController';
  import { CreateArticleController } from 'components/admin/article/CreateArticleController';
  import { ArticleController } from 'components/admin/article/ArticleController';
  import { StaffListController } from 'components/admin/StaffListController';
  import { StaffController } from 'components/admin/StaffController';
  import { IssueListController } from 'components/admin/IssueListController';
  import { MainIssueController } from 'components/admin/MainIssueController';
  import { IssueArticleController } from 'components/admin/IssueArticleController';
  import { IssueCategoryController } from 'components/admin/IssueCategoryController';
  import NotFound from 'components/admin/NotFound';
  import { Login } from 'components/admin/Login';
  import { ImageController } from 'components/admin/ImageController';
  import ImagePreviewList from 'components/admin/ImagePreviewList';
  import ImageArchive from 'components/admin/ImageArchive';
  import Readme from 'components/admin/Readme';
  
  export default (
    <Route path="/" component={AppController}>
      <Route path="login" component={Login} />
      <IndexRedirect to="articles/page/0" />
      <Route path="articles">
        <IndexRedirect to="page/0" />
        <Route path="page/:page" component={ArticleListController}>
          <Route path="new" component={CreateArticleController} />
        </Route>
        <Route path="id/:id" component={ArticleController}>
          <Route path="new" component={CreateArticleController} />
        </Route>
      </Route>
      <Route path="staff" component={StaffListController}>
        <Route path=":slug" component={StaffController} />
      </Route>
      <Route path="issues" component={IssueListController}>
        <Route path=":issueNumber">
          <IndexRedirect to="main" />
          <Route path="main" component={MainIssueController} />
          <Route path="articles" component={IssueArticleController} />
          <Route path="categories" component={IssueCategoryController} />
        </Route>
      </Route>
      <Route path="images" component={ImageController}>
        <Route path="upload" component={ImagePreviewList} />
        <Route path="archive" component={ImageArchive} />
      </Route>
      <Route path="readme" component={Readme} />
  
      <Route path="*" component={NotFound} />
    </Route>
  );
  