<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\BasicSettingsController;
use App\Http\Controllers\ExemptDataController;
use App\Http\Controllers\ExemptReasonController;
use App\Http\Controllers\CalendarController;
use App\Http\Controllers\ProjectController;
use App\Http\Controllers\LogController;

// Route::middleware(['auth:sanctum'])->group(function () {
    Route::group(['prefix' => 'basicSettings'], function () {
        Route::post('/update', [BasicSettingsController::class, 'update']);
        Route::post('/get', [BasicSettingsController::class, 'get']);
    });

    Route::group(['prefix' => 'calendar'], function () {
        Route::post('/create', [CalendarController::class, 'create']);
        Route::post('/createBatch', [CalendarController::class, 'createBatch']);
        Route::post('/read', [CalendarController::class, 'read']);
        Route::post('/update', [CalendarController::class, 'update']);
        Route::delete('/delete', [CalendarController::class, 'delete']);
        Route::post('/check', [CalendarController::class, 'check']);
    });

    Route::group(['prefix' => 'log'], function () {
        Route::post('/read', [LogController::class, 'read']);
    });

    Route::delete('/exemptData/delete', [ExemptDataController::class, 'delete']);
    Route::delete('/exemptReasons/delete', [ExemptReasonController::class, 'delete']);

    Route::get('project', [ProjectController::class, 'index']);
    Route::post('/project/show', [ProjectController::class, 'show']);
// });
