Skip to content

Commit

Permalink
Get rid of unnecessary DashboardController
Browse files Browse the repository at this point in the history
  • Loading branch information
JanOppolzer committed Nov 22, 2024
1 parent 9c7b1ad commit 3e229fc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
16 changes: 0 additions & 16 deletions app/Http/Controllers/DashboardController.php

This file was deleted.

4 changes: 1 addition & 3 deletions routes/web.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php

use App\Http\Controllers\CategoryController;
use App\Http\Controllers\DashboardController;
use App\Http\Controllers\EduidczStatisticController;
use App\Http\Controllers\EntityCategoryController;
use App\Http\Controllers\EntityController;
Expand Down Expand Up @@ -63,8 +62,6 @@
Route::get('fakelogout', [FakeController::class, 'destroy'])->name('fakelogout');
}

Route::get('dashboard', [DashboardController::class, 'index'])->name('dashboard');

// Federation group
Route::group(['prefix' => 'federations', 'as' => 'federations.', 'middleware' => ['auth']], function () {

Expand Down Expand Up @@ -131,6 +128,7 @@
});

Route::middleware('auth')->group(function () {
Route::view('dashboard', 'dashboard')->name('dashboard');
Route::resource('categories', CategoryController::class)->only('index', 'show');
Route::resource('groups', GroupController::class)->only('index', 'show');
Route::resource('users', UserController::class)->except('edit', 'destroy');
Expand Down

0 comments on commit 3e229fc

Please sign in to comment.