File: D:/HostingSpaces/SBogers10/ste.komma.pro/app/Certificates/CertificateRoutes.php
<?php
namespace App\Certificates;
use App\Certificates\Models\Certificate;
use Illuminate\Support\Facades\Route;
use App\Certificates\Kms\CertificateController as KmsCertificateController;
final class CertificateRoutes
{
/**
* Routes that are used for and within the KMS
* Will be prefixed with 'kms' by the Route::group in the RouteResolver
*
* Note: Within the group we use the Explicit Route Model Binding to point to a Certificate
* This is because we use a global controller to resolve the model
*/
public static function kms(){
Route::model('certificate', Certificate::class); //Explicit route model binding
Route::resource('certificates', KmsCertificateController::class);
Route::get('api/certificates', KmsCertificateController::class.'@getStructureAsJson');
Route::post('api/certificates', KmsCertificateController::class.'@setStructureAsJson');
}
}