name('transactions'); Route::post('/transactions', [ExpenseController::class, 'store'])->name('transactions.store'); Route::put('/transactions/{transaction}', [ExpenseController::class, 'update'])->name('transactions.update'); Route::delete('/transactions/{transaction}', [ExpenseController::class, 'destroy'])->name('transactions.destroy'); Route::get('/categories', [CategoryController::class, 'index'])->name('categories'); Route::post('/categories', [CategoryController::class, 'store'])->name('categories.store'); Route::put('/categories/{category}', [CategoryController::class, 'update'])->name('categories.update'); Route::delete('/categories/{category}', [CategoryController::class, 'destroy'])->name('categories.destroy'); Route::get('/summary', SummaryController::class)->name('summary'); Route::get('/close', [SummaryController::class, 'close'])->name('close');