content: import React from 'react';
  import {Route} from 'react-router';
  import { IndexRoute } from 'react-router'
  import App from './components/App';
  import Home from './components/Home';
  import Admin from './components/Admin';
  import Post from './components/Post';
  import ArticleList from './components/ArticleList';
  import AnimeList from './components/AnimeList';
  import Add from './components/Add';
  import Article from './components/Article';
  import AnimeLibrary from './components/AnimeLibrary';
  import Search from './components/Search';
  import Login from './components/login';
  import Register from './components/Register';
  import Index from './components/Index';
  import Account from './components/account';
  
  export default (
    <Route component={App}>
      <Route path='/' component={Home} />
      <Route path='/article/:articleId' component={Article} />
      <Route path='/animelibrary' component={AnimeLibrary} />
      <Route path='/search/:search' component={Search} />
      <Route path='/admin/login' component={Login} />
      <Route path='/admin/forget' component={Account} />
      <Route path='admin' component={Admin} >
        <IndexRoute component={Index}/>
        <Route path='account' component={Account} />
        <Route path='reg' component={Register} />
        <Route path='post' component={Post} >
          <Route path=":id" component={Post} />
          </Route>
        <Route path='articlelist' component={ArticleList} />
        <Route path='animelist' component={AnimeList} />
        <Route path='Add' component={Add} />
      </Route>
      <Route path="/category/:cate1" component={Home}>
        <Route path=":cate2" component={Home}>
          <Route path=":cate3" component={Home} />
        </Route>
      </Route>
    </Route>
  );
  