refactor: one PHP file per route with subdirectories
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 19s

Properly organize routes following design-to-pack pattern:
- routes/markers/get.php
- routes/markers/create.php
- routes/markers/update.php
- routes/markers/delete.php
- routes/position/update.php
- routes/image/capture.php
- routes/image/check-flag.php
- routes/image/clear-flag.php

Each route in its own file for better maintainability.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-02-06 11:58:54 +01:00
parent 590c842072
commit 208d46ff28
11 changed files with 552 additions and 536 deletions

View file

@ -51,9 +51,14 @@ Kirby::plugin('geoproject/map-editor', [
],
'api' => [
'routes' => [
require __DIR__ . '/routes/markers.php',
require __DIR__ . '/routes/position.php',
require __DIR__ . '/routes/image.php',
require __DIR__ . '/routes/markers/get.php',
require __DIR__ . '/routes/markers/create.php',
require __DIR__ . '/routes/markers/update.php',
require __DIR__ . '/routes/markers/delete.php',
require __DIR__ . '/routes/position/update.php',
require __DIR__ . '/routes/image/capture.php',
require __DIR__ . '/routes/image/check-flag.php',
require __DIR__ . '/routes/image/clear-flag.php',
]
],
'hooks' => [