refactor: split API routes into separate files
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 15s
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 15s
Reorganize routes following design-to-pack pattern: - routes/markers.php: CRUD operations for markers - routes/position.php: Position update (single mode) - routes/image.php: Image capture and regeneration flag management Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
9193ac8900
commit
590c842072
5 changed files with 619 additions and 656 deletions
|
|
@ -50,7 +50,11 @@ Kirby::plugin('geoproject/map-editor', [
|
|||
]
|
||||
],
|
||||
'api' => [
|
||||
'routes' => require __DIR__ . '/api/routes.php'
|
||||
'routes' => [
|
||||
require __DIR__ . '/routes/markers.php',
|
||||
require __DIR__ . '/routes/position.php',
|
||||
require __DIR__ . '/routes/image.php',
|
||||
]
|
||||
],
|
||||
'hooks' => [
|
||||
'page.update:after' => function ($newPage, $oldPage) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue