response()->json([ 'success' => true, 'message' => 'EventCrew API v1', 'timestamp' => now()->toIso8601String(), ])); // Public auth routes Route::post('auth/login', LoginController::class); // Protected routes Route::middleware('auth:sanctum')->group(function () { // Auth Route::get('auth/me', MeController::class); Route::post('auth/logout', LogoutController::class); // Organisations Route::apiResource('organisations', OrganisationController::class) ->only(['index', 'show', 'store', 'update']); // Events (nested under organisations) Route::apiResource('organisations.events', EventController::class) ->only(['index', 'show', 'store', 'update']); });