File: D:/HostingSpaces/SBogers10/rentman2019.komma.pro/app/Komma/Solutions/SolutionRoutes.php
<?php
namespace App\Komma\Solutions;
use App\Komma\Solutions\Kms\SolutionController as KmsSolutionController;
use App\Komma\Solutions\Models\Solution;
use Illuminate\Support\Facades\Route;
final class SolutionRoutes
{
public static function get()
{
Route::resource('solutions', SolutionController::class, [
'only' => [
'index',
'show',
],
]);
}
public static function kms()
{
Route::model('solution', Solution::class); //Explicit route model binding
Route::resource('{siteSlug}/solutions', KmsSolutionController::class);
Route::get('api/{siteSlug}/solutions', KmsSolutionController::class.'@getStructureAsJson');
Route::post('api/{siteSlug}/solutions', KmsSolutionController::class.'@setStructureAsJson');
Route::post('solutions/{solution}/freshness', KmsSolutionController::class.'@freshness');
}
}