fix: changer le pattern de route newsletter (api/ réservé par Kirby)

- Pattern `api/newsletter` → `newsletter/subscribe`
- Ajout de config.localhost.php (gitignored) pour le dev local

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-02-27 15:18:29 +01:00
parent 9c9a2fd40a
commit c34a564aa5
3 changed files with 3 additions and 2 deletions

View file

@ -1,7 +1,7 @@
<?php
return [
'pattern' => 'api/newsletter',
'pattern' => 'newsletter/subscribe',
'method' => 'POST|OPTIONS',
'action' => function () {
header('Content-Type: application/json');