import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/app.js';
import Home from './containers/home.js';
import NotFound from './containers/not-found.js';
import {APP_WEB_BASE_PATH} from './env.js';
import Colors from "./containers/add-color-container.js";

const routes = (
    <Route path={`${APP_WEB_BASE_PATH||'/'}`} component={App} >
        <IndexRoute component={Home} />
        <Route path="colors" component={Colors} />
        <Route path="*" component={NotFound} />
    </Route>
);

export default routes;
