Keine Beschreibung

routes.php 1.3KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Application Routes
  5. |--------------------------------------------------------------------------
  6. |
  7. | Here is where you can register all of the routes for an application.
  8. | It's a breeze. Simply tell Laravel the URIs it should respond to
  9. | and give it the controller to call when that URI is requested.
  10. |
  11. */
  12. // OAuth, Login and Signup Routes.
  13. Route::post('auth/twitter', 'AuthController@twitter');
  14. Route::post('auth/facebook', 'AuthController@facebook');
  15. Route::post('auth/foursquare', 'AuthController@foursquare');
  16. Route::post('auth/instagram', 'AuthController@instagram');
  17. Route::post('auth/github', 'AuthController@github');
  18. Route::post('auth/google', 'AuthController@google');
  19. Route::post('auth/linkedin', 'AuthController@linkedin');
  20. Route::post('auth/login', 'AuthController@login');
  21. Route::post('auth/signup', 'AuthController@signup');
  22. Route::get('auth/unlink/{provider}', ['middleware' => 'auth', 'uses' => 'AuthController@unlink']);
  23. // API Routes.
  24. Route::get('api/me', ['middleware' => 'auth', 'uses' => 'UserController@getUser']);
  25. Route::put('api/me', ['middleware' => 'auth', 'uses' => 'UserController@updateUser']);
  26. // Initialize Angular.js App Route.
  27. Route::get('/', 'HomeController@index');