Fix models files API routes.

This commit is contained in:
r-xyz 2024-08-21 20:24:22 +02:00
parent 4ec361c718
commit da7313bc9d
No known key found for this signature in database
GPG key ID: 3847E10B3273EF74

View file

@ -809,28 +809,28 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi
Api\AssetModelFilesController::class,
'store'
]
)->name('api.models.files');
)->name('api.models.files.store');
Route::get('{model_id}/files',
[
Api\AssetModelFilesController::class,
'list'
]
)->name('api.models.files');
)->name('api.models.files.index');
Route::get('{model_id}/file/{file_id}',
[
Api\AssetModelFilesController::class,
'show'
]
)->name('api.models.assets.file');
)->name('api.models.files.show');
Route::delete('{model_id}/file/{file_id}',
[
Api\AssetModelFilesController::class,
'destroy'
]
)->name('api.models.file');
)->name('api.models.files.destroy');
});
Route::resource('models',