docs(08): create phase 8 plan — 4 widget slices (Calculator, Stoppuhr, Favorites, Link)
This commit is contained in:
@@ -609,17 +609,17 @@ export async function fetchFavorites(widgetId: string) {
|
||||
|
||||
---
|
||||
|
||||
## Open Questions
|
||||
## Open Questions (RESOLVED)
|
||||
|
||||
1. **FavoritesController-Route: `/favorites` oder `/dashboard/favorites`?**
|
||||
- Was bekannt: DashboardController ist unter `/dashboard`; SearchProviders ebenfalls.
|
||||
- Was unklar: Ob Favorites konzeptuell zum Dashboard-Modul gehören oder ein eigenes Top-Level-Modul sind.
|
||||
- Empfehlung: `/favorites` (eigenes Modul, eigener Controller) — saubere Trennung. Falls Konsistenz gewünscht, `/dashboard/favorites`.
|
||||
- RESOLVED: `/favorites` (eigenes Modul, eigener Controller) — saubere Trennung. In Plan 08-03 umgesetzt.
|
||||
|
||||
2. **Braucht Next.js eine API-Route als Proxy für `/favorites`?**
|
||||
- Was bekannt: `dashboard-api.ts` ruft NestJS direkt via `NEXT_PUBLIC_API_URL` auf (mit `credentials: 'include'`). Das funktioniert für alle bestehenden Widgets.
|
||||
- Was unklar: Ob CORS-Konfiguration für `/favorites` bereits durch bestehende NestJS-CORS-Config abgedeckt ist.
|
||||
- Empfehlung: Kein Next.js API-Proxy nötig — gleiche Fetch-Pattern wie dashboard-api.ts verwenden.
|
||||
- RESOLVED: Kein Next.js API-Proxy nötig — gleiche Fetch-Pattern wie `dashboard-api.ts` verwenden. CORS durch bestehende NestJS-Config abgedeckt. In Plan 08-03 (favorites-api.ts) umgesetzt.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user