Routing not working in Angular2
<p>My Routing isn't working in Angular2, to demonstrate the point, I have put the same component as the destination for both the root of my site and <code>/login</code>. The component works at <code>http://localhost:3000</code>, but at <code>http://localhost:3000/login</code>, I just get a notice "Cannot GET /login". </p>

<p>app.component.ts:</p>

<pre><code>import { Component } from 'angular2/core';
import { RouteConfig, ROUTER_DIRECTIVES, ROUTER_PROVIDERS } from 'angular2/router';

import {TodoService} from './todo/services/todo.service';
import { TodoCmp } from './todo/components/todo.component';
import { LoginComponent } from './user/components/login.component';
import { UserService } from './user/services/user.service';


@Component({
  selector: 'my-app',
  template: `
    &lt;h1&gt;{{title}}&lt;/h1&gt;
    &lt;router-outlet&gt;&lt;/router-outlet&gt;
  `,
  styleUrls: ['client/dev/todo/styles/todo.css'],
  directives: [ROUTER_DIRECTIVES],
  providers: [
    ROUTER_PROVIDERS,
    TodoService
  ]
})
@RouteConfig([
  {
    path: '/',
    name: 'TodoCmp',
    component: TodoCmp,
    useAsDefault: true
  },
  {
    path: '/login',
    name: 'TodoCmp',
    component: TodoCmp
  }
])

export class AppComponent {
  title = 'ng2do';
}
</code></pre>

<p>Here is a link to my <a href="https://github.com/georgeedwards/Gen-App/blob/master/client/dev/index.html" rel="nofollow">index</a> file.
What have I done wrong?</p>