import React from 'react';
import {Router, Route, IndexRoute} from 'react-router';
import Main from '../components/Main';
import Home from '../components/Home';

const routes = (
	<Router>
		<Route path="/react-github-search/public/index.html" component={Main}>
			<IndexRoute component={Home} />
		</Route>
	</Router>
);

export default routes;

import React from 'react';
import {Router, Route, IndexRoute} from 'react-router';
import Main from '../components/Main';
import Home from '../components/Home';
import Profile from '../components/Profile';

const routes = (
	<Route>
		<Route path="/public/" component={Main}>
			<Route path='/public/:username' component={Profile}/>
			<IndexRoute component={Home} />
		</Route>
	</Route>
);

export default routes;

add public as main link, tricky, i know