diff --git a/app/Initialize/InitializeController.php b/app/Initialize/InitializeController.php index ad5a46a1..fbb2097b 100644 --- a/app/Initialize/InitializeController.php +++ b/app/Initialize/InitializeController.php @@ -3,15 +3,19 @@ namespace App\Initialize; use App\Http\Controllers\Controller; +use Illuminate\Http\RedirectResponse; use Illuminate\Http\Request; +use Inertia\Response; class InitializeController extends Controller { - public function index() { - return \Inertia::render('Initialize/Index'); + public function index(): Response + { + return \Inertia::render('Initialize/VIndex'); } - public function store() { + public function store(): RedirectResponse + { InitializeJob::dispatch(auth()->user()); return redirect()->route('home'); diff --git a/resources/js/views/Initialize/Index.vue b/resources/js/views/Initialize/VIndex.vue similarity index 100% rename from resources/js/views/Initialize/Index.vue rename to resources/js/views/Initialize/VIndex.vue