|
|
|
@ -47,13 +47,13 @@ Route::get('@{user}/!favourites', 'ProfileController@viewFavourites')->name('pro |
|
|
|
|
Route::get('@{user}/{table}', 'TableController@view')->name('table.view'); |
|
|
|
|
Route::get('@{user}/{table}/revisions', 'TableController@viewRevisions')->name('table.revisions'); |
|
|
|
|
Route::get('@{user}/{table}/export', 'TableController@export')->name('table.export'); |
|
|
|
|
Route::get('@{user}/{table}/favourite', 'TableController@favouriteTable')->name('table.favourite'); |
|
|
|
|
Route::get('@{user}/{table}/unfavourite', 'TableController@unfavouriteTable')->name('table.unfavourite'); |
|
|
|
|
Route::get('@{user}/{table}/favourites', 'TableController@viewFavourites')->name('table.favourites'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Routes for confirmed users |
|
|
|
|
Route::group(['middleware' => ['auth', 'activated']], function () { |
|
|
|
|
Route::get('@{user}/{table}/favourite', 'TableController@favouriteTable')->name('table.favourite'); |
|
|
|
|
Route::get('@{user}/{table}/unfavourite', 'TableController@unfavouriteTable')->name('table.unfavourite'); |
|
|
|
|
|
|
|
|
|
// Table resource |
|
|
|
|
Route::group([ |
|
|
|
|
'prefix' => 'table', |
|
|
|
|