feat: remote user, ack/done actions and /me API

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BCrwHHnGCB5XH968Nxokqw
This commit is contained in:
nikita.hohlov
2026-09-04 07:05:50 -03:00
parent 5ea5c045a7
commit 1b03fe0796
6 changed files with 320 additions and 2 deletions

View File

@@ -1,7 +1,14 @@
<?php
use App\Http\Controllers\Me\EventsController as MeEvents;
use App\Http\Controllers\Me\ProfileController;
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return view('welcome');
Route::middleware('remote.user')->group(function () {
Route::get('/me', [ProfileController::class, 'show']);
Route::patch('/me', [ProfileController::class, 'update']);
Route::post('/me/heartbeat', [ProfileController::class, 'heartbeat']);
Route::get('/me/events', [MeEvents::class, 'index']);
Route::post('/me/events/{event}/ack', [MeEvents::class, 'ack']);
Route::post('/me/events/{event}/done', [MeEvents::class, 'done']);
});