name('user.set'); Route::get('/userselect', [UserController::class, 'selectUser'])->name('user.select'); Route::get('/autologin/{uuid}', [LoginController::class, 'autologin'])->name('user.autologin'); Route::get('/', [ItemController::class,'dash'])->name('dash'); Route::get('check_app_list', [ItemController::class,'checkAppList'])->name('applist'); Route::get('single/{appid}', function ($appid) { return json_encode(Application::single($appid)); })->name('single'); /** * Tag Routes */ Route::resource('tags', TagController::class); Route::group([ 'as' => 'tags.', 'prefix' => 'tag', ], function () { Route::get('/{slug}', [TagController::class, 'show'])->name('show'); Route::get('/add/{tag}/{item}', [TagController::class, 'add'])->name('add'); Route::get('/restore/{id}', [TagController::class, 'restore'])->name('restore'); }); /** * Item Routes */ Route::resource('items', ItemController::class); Route::group([ 'as' => 'items.', 'prefix' => 'items', ], function () { Route::get('/websitelookup/{url}', [ItemController::class, 'websitelookup'])->name('lookup'); Route::get('/pin/{id}', [ItemController::class, 'pin'])->name('pin'); Route::get('/restore/{id}', [ItemController::class, 'restore'])->name('restore'); Route::get('/unpin/{id}', [ItemController::class, 'unpin'])->name('unpin'); Route::get('/pintoggle/{id}/{ajax?}/{tag?}', [ItemController::class, 'pinToggle'])->name('pintoggle'); }); Route::post('order', [ItemController::class,'setOrder'])->name('items.order'); Route::post('appload', [ItemController::class,'appload'])->name('appload'); Route::post('test_config', [ItemController::class,'testConfig'])->name('test_config'); Route::get('get_stats/{id}', [ItemController::class,'getStats'])->name('get_stats'); Route::get('/search', [SearchController::class,'index'])->name('search'); Route::get('view/{name_view}', function ($name_view) { return view('SupportedApps::'.$name_view)->render(); }); Route::get('titlecolour', function (Request $request) { $color = $request->input('color'); if ($color) { return title_color($color); } return ''; })->name('titlecolour'); Route::resource('users', UserController::class); /** * Settings. */ Route::group([ 'as' => 'settings.', 'prefix' => 'settings', ], function () { Route::get('/', [SettingsController::class,'index'])->name('index'); Route::get('edit/{id}', [SettingsController::class,'edit'])->name('edit'); Route::get('clear/{id}', [SettingsController::class,'clear'])->name('clear'); Route::patch('edit/{id}', [SettingsController::class,'update']); }); Auth::routes(['register' => false]); Route::get('/home', [HomeController::class,'index'])->name('home'); Route::resource('api/item', ItemRestController::class); Route::get('import', ImportController::class)->name('items.import'); Route::get('/health', HealthController::class)->name('health');