Refactor evaluation and admin pages to use server actions for data fetching, enhancing performance and simplifying state management. Update README to reflect API route changes and remove deprecated API endpoints for users and evaluations.
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 3m7s
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 3m7s
This commit is contained in:
11
README.md
11
README.md
@@ -35,17 +35,16 @@ Open [http://localhost:3000](http://localhost:3000).
|
||||
- **2 templates**: Full 15-dimensions, Short 8-dimensions
|
||||
- **Admin user**: `admin@peaksys.local` (mock auth)
|
||||
|
||||
## API Routes
|
||||
## API Routes (restantes)
|
||||
|
||||
Les mutations (create, update, delete, share, etc.) sont gérées par **Server Actions**. Routes API restantes :
|
||||
|
||||
| Route | Method | Description |
|
||||
|-------|--------|-------------|
|
||||
| `/api/evaluations` | GET, POST | List / create evaluations |
|
||||
| `/api/evaluations/[id]` | GET, PUT | Get / update evaluation |
|
||||
| `/api/templates` | GET | List templates |
|
||||
| `/api/export/csv?id=` | GET | Export evaluation as CSV |
|
||||
| `/api/export/pdf?id=` | GET | Export evaluation as PDF |
|
||||
| `/api/auth` | GET, POST | Mock auth |
|
||||
| `/api/ai/suggest-followups` | POST | AI follow-up suggestions (stub) |
|
||||
| `/api/auth/*` | — | NextAuth |
|
||||
| `/api/auth/signup` | POST | Inscription |
|
||||
|
||||
## Export cURL Examples
|
||||
|
||||
|
||||
Reference in New Issue
Block a user