aboutsummaryrefslogtreecommitdiff
path: root/routes
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-11-02 17:45:41 +0100
committerMateja <mail@matejamaric.com>2020-11-02 17:45:41 +0100
commitcdd9fcf7bf49e4468c2290e30a98c6730a334900 (patch)
tree552b1372802e38b13ac6567845a35617e38a4f9c /routes
parentb5afd40a49a2c2b061865a501103ea2a060f4997 (diff)
downloadyota-laravel-cdd9fcf7bf49e4468c2290e30a98c6730a334900.tar.gz
yota-laravel-cdd9fcf7bf49e4468c2290e30a98c6730a334900.zip
News system finished...
Diffstat (limited to 'routes')
-rw-r--r--routes/web.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/web.php b/routes/web.php
index 4e6b85c..aa5492b 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -27,7 +27,7 @@ Route::get('/news/add', [NewsController::class, 'create'])->name('newsAdd')->mid
Route::post('/news/add', [NewsController::class, 'store'])->name('newsAddForm')->middleware(['auth']);
Route::get('/news/edit/{id}', [NewsController::class, 'edit'])->name('newsEdit')->middleware(['auth']);
Route::post('/news/edit/{id}', [NewsController::class, 'update'])->name('newsEditForm')->middleware(['auth']);
-Route::get('/news/delete/{id}', [NewsController::class, 'delete'])->name('newsDelete')->middleware(['auth']);
+Route::get('/news/delete/{id}', [NewsController::class, 'destroy'])->name('newsDelete')->middleware(['auth']);
Route::get('/gallery', [PagesController::class, 'gallery'])->name('gallery');
@@ -44,7 +44,7 @@ Route::get('/special-calls/add', [SpecialCallsController::class, 'create'])->nam
Route::post('/special-calls/add', [SpecialCallsController::class, 'store'])->name('addSignForm')->middleware(['auth']);
Route::get('/special-calls/edit/{id}', [SpecialCallsController::class, 'edit'])->name('editSign')->middleware(['auth']);
Route::post('/special-calls/edit/{id}', [SpecialCallsController::class, 'update'])->name('editSignForm')->middleware(['auth']);
-Route::get('/special-calls/delete/{id}', [SpecialCallsController::class, 'delete'])->name('deleteSign')->middleware(['auth']);
+Route::get('/special-calls/delete/{id}', [SpecialCallsController::class, 'destroy'])->name('deleteSign')->middleware(['auth']);
Route::get('/login', [LoginController::class, 'login'])->name('login');