refactor: one PHP file per route with subdirectories
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 19s
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:
parent
590c842072
commit
208d46ff28
11 changed files with 552 additions and 536 deletions
|
|
@ -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' => [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue