<?php

use Functional\Routines\Http\Controllers\RoutinesController;
use Illuminate\Support\Facades\Route;

// Routes here are wrapped in the 'api' middleware group with the 'api'
// prefix by the layer service provider. To version your endpoints
// (/api/v1/...), nest Route::prefix('v1')->group(...) inside.

// Scopées à l'utilisateur authentifié (auth()->id()).
Route::middleware('auth:sanctum')->group(function () {
    Route::apiResource('routines', RoutinesController::class);
});
