- Update composer.json to require grazulex/laravel-apiroute ^2.0 - Add versions config to config/apiroute.php - Create routes/api/v1.php with version 1 routes - Update routes/api.php to remove imperative version declarations - Update README.md with new v2.x documentation BREAKING CHANGE: API versions are now declared in config/apiroute.php instead of routes/api.php
19 lines
582 B
PHP
19 lines
582 B
PHP
<?php
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| API Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| API routes are versioned using grazulex/laravel-apiroute v2.x.
|
|
| Versions are defined in config/apiroute.php and route files are
|
|
| located in routes/api/{version}.php
|
|
|
|
|
| Supports URI path, header, query, and Accept header detection.
|
|
| See config/apiroute.php for configuration options.
|
|
|
|
|
*/
|
|
|
|
// Routes are now loaded automatically from config/apiroute.php
|
|
// See routes/api/v1.php for version 1 routes
|