mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-13 04:30:41 -05:00
undo my dumbness :)
going to use a livewire component as per my masters request (he big brain unlike me)
This commit is contained in:
parent
7d3c933be4
commit
39820b83d6
@ -55,10 +55,5 @@ class ModController extends Controller
|
||||
return new ModResource($mod);
|
||||
}
|
||||
|
||||
public function destroy(Mod $mod): void
|
||||
{
|
||||
$this->authorize('delete', $mod);
|
||||
|
||||
$mod->delete();
|
||||
}
|
||||
public function destroy(Mod $mod): void {}
|
||||
}
|
||||
|
@ -20,8 +20,6 @@ Route::middleware(['auth.banned'])->group(function () {
|
||||
Route::controller(ModController::class)->group(function () {
|
||||
Route::get('/mods', 'index')->name('mods');
|
||||
Route::get('/mod/{mod}/{slug}', 'show')->where(['mod' => '[0-9]+'])->name('mod.show');
|
||||
Route::post('/mod/{mod}', 'update')->where(['mod' => '[0-9]+'])->name('mod.update');
|
||||
Route::delete('/mod/{mod}', 'destroy')->where(['mod' => '[0-9]+'])->name('mod.destroy');
|
||||
});
|
||||
|
||||
// Download Link
|
||||
|
Loading…
x
Reference in New Issue
Block a user