Skip to content

Commit a9ece25

Browse files
caseylockerclaude
andcommitted
fix(promo-codes): register discover endpoint in ApiEndpointsSeeder
The GET /api/v1/summits/{id}/promo-codes/all/discover route was added in Task 12 but never seeded into the api_endpoints table. The OAuth2 bearer token validator middleware rejects any unregistered route with a 400 "API endpoint does not exits" error, causing 5 discover-endpoint integration tests in OAuth2SummitPromoCodesApiTest to fail. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent b38e434 commit a9ece25

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

database/seeders/ApiEndpointsSeeder.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7591,6 +7591,15 @@ private function seedSummitEndpoints()
75917591
SummitScopes::ReadAllSummitData
75927592
]
75937593
],
7594+
[
7595+
'name' => 'discover-promo-codes',
7596+
'route' => '/api/v1/summits/{id}/promo-codes/all/discover',
7597+
'http_method' => 'GET',
7598+
'scopes' => [
7599+
SummitScopes::ReadSummitData,
7600+
SummitScopes::ReadAllSummitData
7601+
]
7602+
],
75947603
// speakers promo codes
75957604
[
75967605
'name' => 'get-promo-code-speakers',

0 commit comments

Comments
 (0)