HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/netwerkbrabant.komma.pro/app/KommaApp/Questions/questionRoutes.php
<?php

use App\KommaApp\Questions\QuestionController as QuestionController;
use App\KommaApp\Questions\Kms\QuestionController as KmsQuestionController;



Route::resource('questions', QuestionController::class, [
    'only' => [
        'index',
    ]
]);


Route::model('question', App\KommaApp\Questions\Models\Question::class); //Explicit route model binding

// KMS routes
Route::group(['middleware' => ['auth']], function() {
    Route::resource('kms/{siteSlug}/questions', KmsQuestionController::class);
    Route::get('kms/api/{siteSlug}/questions', KmsQuestionController::class.'@getStructureAsJson');
    Route::post('kms/api/{siteSlug}/questions', KmsQuestionController::class.'@setStructureAsJson');
});