title: 404 not found error when routing with Laravel
body: <p>I am trying to follow David Mosher's tutorial on going end-to-end with angular JS on youtube: <a href="http://www.youtube.com/watch?v=hqAyiqUs93c" rel="nofollow">http://www.youtube.com/watch?v=hqAyiqUs93c</a>.</p>
  
  <p>Everything was going fine until I attempted to route the /auth/login and auth/logout urls to the Authentication Service, as seen in the video at about 14:30. When I attempt to login, I receive a 404 Not Found Error. I have tried messing around with the route's URL, but to no avail. I am running locally on MAMP with MySQL and Laravel.</p>
  
  <p>Here's my code for routes.php</p>
  
  <pre><code>Route::get('/', function(){
      return View::make('index');
  });
  
  Route::post('/auth/login/', 'AuthController@login');
  Route::get('/auth/logout/', 'AuthController@logout');
  </code></pre>
  
  <p>and my code for AuthController</p>
  
  <pre><code>&lt;?php
  
  class AuthController extends BaseController {
    public function login()
    {
      if(Auth::attempt(array('email' =&gt; Input::json('email'), 'password' =&gt; Input::json('password'))))
      {
        return Response::json(Auth::user());
      } else {
        return Response::json(array('flash' =&gt; 'Invalid username or password'), 500);
      }
    }
  
    public function logout()
    {
      Auth::logout();
      return Response::json(array('flash' =&gt; 'Logged Out!'));
    }
  
  }
  </code></pre>
  
  <p>lastly, code for authentication service</p>
  
  <pre><code>angular.module("epicApp")
      .factory('AuthenticationService', function($http, $location){
          return{
              login: function(credentials){
                  return $http.post("/auth/login/", credentials);
              },
              logout: function(){
                  return $http.get("/auth/logout/");
              }
          }
      })
  </code></pre>