import React from 'react'
import App from './App/App.jsx'
import request from 'superagent-bluebird-promise'
import Router, {Route} from 'react-router'
import ProposalList from './ProposalList/ProposalList.jsx'

import './normalize.css'
import './index.css'

var scripts = document.getElementsByTagName("script");
var src = scripts[scripts.length - 1].getAttribute("src");
window.__webpack_public_path__ = src.substr(0, src.lastIndexOf("/") + 1);


const routes = (
  <Route handler={App} path="/">
    <Route name="crowdfunding" handler={ProposalList} />
  </Route>
);

var root = document.getElementById('root');
Router.run(routes, Router.HashLocation, (Root) => {
  React.render(<Root/>, root);
});

@@ -202,16 +202,63 @@
 ist.jsx'
+%0Aimport Proposal from './Proposal/Proposal.jsx'
 %0A%0Aimport
@@ -559,20 +559,131 @@
 me=%22
-crowdfunding
+proposals%22 path=%22proposals%22              handler=%7BProposalList%7D /%3E%0A    %3CRoute name=%22proposal%22  path=%22proposal/:proposalName
 %22 ha
@@ -693,28 +693,24 @@
 er=%7BProposal
-List
 %7D /%3E%0A  %3C/Rou

update routing