<?php

use Functional\Streaks\Http\Controllers\AchievementsController;
use Functional\Streaks\Http\Controllers\DashboardController;
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és à l'utilisateur authentifié (auth()->id()).
Route::middleware('auth:sanctum')->group(function () {
    Route::get('/dashboard', [DashboardController::class, 'index']);
    Route::get('/achievements', [AchievementsController::class, 'index']);
});
