implemented social identities management page + pw editing page. probably need to fix backend

This commit is contained in:
2018-07-25 23:07:11 +02:00
parent 57911377ef
commit 2e075799f2
35 changed files with 541 additions and 301 deletions
+6 -6
View File
@@ -13,7 +13,7 @@ Route::get('/about/privacy', function () {
Route::get('/', function () {
if (!Auth::guest()) {
return redirect(route('user.view', Auth::user()->name));
return redirect(route('profile.view', Auth::user()->name));
}
return view('welcome');
});
@@ -28,15 +28,15 @@ Route::group(['middleware' => 'auth'], function () {
});
Route::group([
'prefix' => 'user',
'prefix' => 'profile',
], function () {
Route::get('edit', 'UserController@edit')->name('user.edit');
Route::post('edit', 'UserController@store')->name('user.store');
Route::get('edit', 'ProfileController@edit')->name('profile.edit');
Route::post('edit', 'ProfileController@store')->name('profile.store');
Route::post('create', 'TableController@storeNew')->name('table.storeNew');
Route::get('logins', 'UserController@manageOauth')->name('user.manage-oauth');
Route::get('logins', 'ProfileController@manageOauth')->name('profile.manage-oauth');
});
});
// Table resource - located at the end to work as a fallback
Route::get('@{user}', 'UserController@view')->name('user.view');
Route::get('@{user}', 'ProfileController@view')->name('profile.view');
Route::get('@{user}/{table}', 'TableController@view')->name('table.view');