[34588f42] Feat: Freigabe-Anfrage mit Gutschein-Webhook integriert

- Datenbank um 'DiscountCode' Modell erweitert.
- Neue Backend API-Routen für Upload von Gutscheincodes, Abfrage der Verfügbarkeit und Webhook-Listener (Google Forms) zur automatischen Dankes-E-Mail erstellt.
- Frontend (App.tsx) um ein neues Tool ('Anfrage Veröffentlichung') erweitert, das anhand der CSV-Daten Platzhalter (<Name>, <Kind>, <Kindergarten>) personalisiert und Mails via Gmail versendet.
- Google Forms Webhook Script (google_forms_webhook.js) als Kopiervorlage erstellt.
This commit is contained in:
2026-04-17 20:17:30 +00:00
parent 1a3568f69e
commit 929d92afeb
5 changed files with 339 additions and 0 deletions

View File

@@ -87,7 +87,10 @@ load_dotenv()
# Ensure DB is created
Base.metadata.create_all(bind=engine)
import publish_request_api
app = FastAPI(title="Fotograf.de Scraper & ERP API")
app.include_router(publish_request_api.router)
# Configure CORS
app.add_middleware(