File: D:/HostingSpaces/SBogers10/reiskick.komma.nl/app/InstagramHighlights/InstagramHighlightRoutes.php
<?php
namespace App\InstagramHighlights;
use App\InstagramHighlights\Models\InstagramHighlight;
use Illuminate\Support\Facades\Route;
use App\InstagramHighlights\Kms\InstagramHighlightController as KmsInstagramHighlightController;
final class InstagramHighlightRoutes
{
/**
* 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 InstagramHighlight
* This is because we use a global controller to resolve the model
*/
public static function kms(){
Route::model('instagram_highlight', InstagramHighlight::class); //Explicit route model binding
Route::resource('instagram_highlights', KmsInstagramHighlightController::class);
Route::get('api/instagram_highlights', KmsInstagramHighlightController::class.'@getStructureAsJson');
Route::post('api/instagram_highlights', KmsInstagramHighlightController::class.'@setStructureAsJson');
}
}