import React from 'react/addons';
import Router from 'react-router';
import App from './app.jsx';
import TodoApp from '../components/templates/todo-app/todo-app.jsx';
import About from '../components/templates/about/about.jsx';

var Route = Router.Route;
var DefaultRoute = Router.DefaultRoute;
var NotFoundRoute = Router.NotFoundRoute;
var Redirect = Router.Redirect;

var routes = (
  <Route name='app' path='/' handler={App}>
    <Route name='about' handler={About} />
    <DefaultRoute name='todo-app' handler={TodoApp} />
  </Route>
);

export default routes;

import React from 'react/addons';
import Router from 'react-router';
import App from './app.jsx';
import TodoApp from '../components/templates/todo-app/todo-app.jsx';
import About from '../components/templates/about/about.jsx';

var Route = Router.Route;
var DefaultRoute = Router.DefaultRoute;
var NotFoundRoute = Router.NotFoundRoute;
var Redirect = Router.Redirect;

var routes = (
  <Route name='app' path='/' handler={App}>
    <DefaultRoute name='todo-app' handler={TodoApp} />
    <Route name='about' path='/about' handler={About} />
    <NotFoundRoute handler={TodoApp} />
  </Route>
);

export default routes;

Add NotFoundRoute to redirect back to app
Add NotFoundRoute to redirect back to app
