2018-08-11 18:32:56 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Web Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2018-08-12 15:26:26 +01:00
|
|
|
Route::get('/', function() {
|
|
|
|
return redirect()->route('public');
|
|
|
|
});
|
|
|
|
|
|
|
|
Route::get('/timeline/public', 'TimelineController@public_timeline')
|
|
|
|
->name('public');
|
|
|
|
|
|
|
|
Route::get('/timeline/friends', 'TimelineController@home_timeline')
|
|
|
|
->name('friends');
|
|
|
|
|
2018-08-12 15:40:07 +01:00
|
|
|
Route::get('/login', 'LoginController@login')
|
|
|
|
->name('login');
|
2018-08-12 15:26:26 +01:00
|
|
|
|
|
|
|
Route::get('/callback', 'LoginController@callback');
|