refactor: split API routes into separate files
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:
isUnknown 2026-02-06 11:55:55 +01:00
parent 9193ac8900
commit 590c842072
5 changed files with 619 additions and 656 deletions

View file

@ -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) {