From 9a6aebd12850296fa53fdc75b3fb13528e9d671b Mon Sep 17 00:00:00 2001 From: Snider Date: Wed, 4 Mar 2026 18:40:34 +0000 Subject: [PATCH] =?UTF-8?q?fix(api):=20correct=20route=20prefix=20comments?= =?UTF-8?q?=20=E2=80=94=20no=20prefix=20applied?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Virgil --- Boot.php | 3 +-- Routes/api.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Boot.php b/Boot.php index 7532798..1e13af4 100644 --- a/Boot.php +++ b/Boot.php @@ -127,8 +127,7 @@ class Boot extends ServiceProvider * Handle API routes registration event. * * Registers REST API endpoints for go-agentic Client consumption. - * LifecycleEventProvider wraps with 'api' middleware + '/api' prefix, - * so routes end up at /api/v1/*. Go client sets BaseURL to .../api. + * Routes at /v1/* — Go client uses BaseURL + "/v1/plans" directly. */ public function onApiRoutes(ApiRoutesRegistering $event): void { diff --git a/Routes/api.php b/Routes/api.php index d4392ad..9be59da 100644 --- a/Routes/api.php +++ b/Routes/api.php @@ -14,7 +14,7 @@ use Illuminate\Support\Facades\Route; | REST endpoints for the go-agentic Client (dispatch watch). | Protected by AgentApiAuth middleware with Bearer token. | -| Routes at /api/v1/* (Go client sets BaseURL to .../api) +| Routes at /v1/* (Go client uses BaseURL + "/v1/...") | */