StreakFit — API Laravel 13 OSDD + Octane/FrankenPHP
Build & Deploy / build (push) Successful in 18s

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-19 03:00:17 +02:00
co-authored by Claude Opus 4.8
commit af32669931
300 changed files with 21235 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
<?php
use Functional\Users\Http\Controllers\AuthController;
use Illuminate\Support\Facades\Route;
// Le préfixe api/ est ajouté par UsersServiceProvider::withRouting() : GET /api/me.
Route::get('me', [AuthController::class, 'me'])->middleware('auth:sanctum');
+6
View File
@@ -0,0 +1,6 @@
<?php
use Illuminate\Support\Facades\Broadcast;
// Define broadcast channels here, e.g.:
// Broadcast::channel('App.Models.User.{id}', fn($user, $id) => (int) $user->id === (int) $id);
+6
View File
@@ -0,0 +1,6 @@
<?php
use Illuminate\Support\Facades\Artisan;
// Define artisan commands here, e.g.:
// Artisan::command('layer:hello', fn() => info('Hello from this layer.'));
+16
View File
@@ -0,0 +1,16 @@
<?php
use Functional\Users\Http\Controllers\AuthController;
use Functional\Users\Http\Controllers\OidcController;
use Illuminate\Support\Facades\Route;
// Auth 100% back par cookie de session Sanctum SPA : inscription, login/logout par mot de passe,
// et login OIDC piloté par le back (pocket-id). Le front ne fait que suivre ces routes.
Route::post('register', [AuthController::class, 'register']);
Route::post('login', [AuthController::class, 'login']);
Route::post('logout', [AuthController::class, 'logout'])->middleware('auth');
Route::prefix('auth/oidc')->name('oidc.')->group(function (): void {
Route::get('redirect', [OidcController::class, 'redirect'])->name('redirect');
Route::get('callback', [OidcController::class, 'callback'])->name('callback');
});