Advertisement
langbung01

Untitled

Aug 21st, 2018
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.22 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Web Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here is where you can register web routes for your application. These
  9. | routes are loaded by the RouteServiceProvider within a group which
  10. | contains the "web" middleware group. Now create something great!
  11. |
  12. */
  13.  
  14. Route::get('/', function () {
  15.     return view('welcome');
  16. });
  17.  
  18. Route::post('/login2', "OAuth\OAuthController@login")->name("loginWithDevOne");
  19. Route::post('/', "OAuth\OAuthController@getTokenByPasswordGrant")->name("getToken");
  20. // Route::get('/lip', "OAuth\OAuthController@loginWithPassGrant")->name("loginWithDevOneth");
  21. // Route::get("/menu_token","MenuController");
  22. Auth::routes();
  23. Route::get('/info',"Info\InfoController@getInfoAccount")->name("information");
  24. Route::get('/home', 'HomeController@index')->name('home');
  25.  
  26. Route::get('/', function () {
  27.     return view('welcome');
  28. });
  29.  
  30. Auth::routes();
  31.  
  32. // Route::get('/home', 'HomeController@index')->name('home');
  33.  
  34. Route::get('/redirect',"OAuth\OAuthController@requestAuth" )->name("request.autherize");
  35.  
  36. Route::get('/auther/callback',"OAuth\OAuthController@callbackAuth" );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement