Skip to content

A free open source IT asset/license management system

New route for menu state saving

snipe0e5af78cf1bf
diff --git a/routes/web.php b/routes/web.php
index bb78fa8a80..9eca110a92 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -233,6 +233,8 @@ Route::group([ 'prefix' => 'account', 'middleware' => ['auth']], function () {
Route::get('profile', [ 'as' => 'profile', 'uses' => 'ProfileController@getIndex' ]);
Route::post('profile', 'ProfileController@postIndex');
+ Route::get('menu', [ 'as' => 'account.menuprefs', 'uses' => 'ProfileController@getMenuState' ]);
+
Route::get('password', [ 'as' => 'account.password.index', 'uses' => 'ProfileController@password' ]);
Route::post('password', [ 'uses' => 'ProfileController@passwordSave' ]);