Skip to content

Commit

Permalink
fixes output delete route
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertoGongora committed Jun 7, 2024
1 parent ccf354e commit f35f870
Showing 1 changed file with 40 additions and 1 deletion.
41 changes: 40 additions & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function () {
Route::get('/collections/{collection}/outputs', 'index')
->name('collections.outputs.index');

Route::delete('/outputs/{output}/delete', 'delete')
Route::delete('/outputs/{output:id}/delete', 'delete')
->name('collections.outputs.delete');

}
Expand Down Expand Up @@ -237,3 +237,42 @@ function () {
->name('collections.sources.json_source.update');
}
);

Route::controller(\App\Http\Controllers\Sources\FooBarController::class)->group(
function () {
Route::get('/collections/{collection}/sources/foo_bar/create', 'create')
->name('collections.sources.foo_bar.create');
Route::post('/collections/{collection}/sources/foo_bar', 'store')
->name('collections.sources.foo_bar.store');
Route::get('/collections/{collection}/sources/foo_bar/{source}/edit', 'edit')
->name('collections.sources.foo_bar.edit');
Route::put('/collections/{collection}/sources/foo_bar/{source}/update', 'update')
->name('collections.sources.foo_bar.update');
}
);

Route::controller(\App\Http\Controllers\Sources\FooBarController::class)->group(
function () {
Route::get('/collections/{collection}/sources/foo_bar/create', 'create')
->name('collections.sources.foo_bar.create');
Route::post('/collections/{collection}/sources/foo_bar', 'store')
->name('collections.sources.foo_bar.store');
Route::get('/collections/{collection}/sources/foo_bar/{source}/edit', 'edit')
->name('collections.sources.foo_bar.edit');
Route::put('/collections/{collection}/sources/foo_bar/{source}/update', 'update')
->name('collections.sources.foo_bar.update');
}
);

Route::controller(\App\Http\Controllers\Sources\FooBarController::class)->group(
function () {
Route::get('/collections/{collection}/sources/foo_bar/create', 'create')
->name('collections.sources.foo_bar.create');
Route::post('/collections/{collection}/sources/foo_bar', 'store')
->name('collections.sources.foo_bar.store');
Route::get('/collections/{collection}/sources/foo_bar/{source}/edit', 'edit')
->name('collections.sources.foo_bar.edit');
Route::put('/collections/{collection}/sources/foo_bar/{source}/update', 'update')
->name('collections.sources.foo_bar.update');
}
);

0 comments on commit f35f870

Please sign in to comment.