name('projects.projectImage'); Route::post('/projects/projectImage', [ProjectImage::class, 'upload']); // Backward-compat alias for the retired /api/projects avatar endpoint Route::get('/api/projects', [ProjectImage::class, 'show'])->name('projects.projectImage.legacy'); Route::post('/api/projects', [ProjectImage::class, 'upload']);