Skip to content

Commit 3d0be34

Browse files
committed
feat: Add REST API for generating and managing running numbers
1 parent a15d7b9 commit 3d0be34

File tree

6 files changed

+1242
-0
lines changed

6 files changed

+1242
-0
lines changed

config/running-number.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,29 @@
8888
// 'ticket' => ResetPeriod::DAILY->value,
8989
// ],
9090
],
91+
92+
/*
93+
|--------------------------------------------------------------------------
94+
| API Configuration
95+
|--------------------------------------------------------------------------
96+
|
97+
| Configure the REST API endpoints for generating and checking running
98+
| numbers via HTTP. Set 'enabled' to true to activate the API routes.
99+
|
100+
*/
101+
102+
'api' => [
103+
// Enable or disable API routes
104+
'enabled' => env('RUNNING_NUMBER_API_ENABLED', false),
105+
106+
// API route prefix (default: api/running-numbers)
107+
'prefix' => env('RUNNING_NUMBER_API_PREFIX', 'api/running-numbers'),
108+
109+
// API middleware
110+
'middleware' => ['api'],
111+
112+
// Optional authentication middleware
113+
// Uncomment to require authentication for API endpoints
114+
// 'middleware' => ['api', 'auth:sanctum'],
115+
],
91116
];

0 commit comments

Comments
 (0)