feat: Mail template management UI and API CRUD

- Added full CRUD endpoints for mail templates (create, update, delete, preview)
- Introduced Joi validators for template create/update/preview
- Updated routes/controller to support ID and type lookups
- Built React Templates page with HTML editor, preview, and clipboard helpers
- Added navigation entry and route for /templates
- Enhanced documentation (README, QUICKSTART, KULLANIM, frontend/backend README)
This commit is contained in:
salvacybersec
2025-11-10 17:27:19 +03:00
parent dc16d0c549
commit 20191eb35d
11 changed files with 661 additions and 13 deletions

View File

@@ -65,9 +65,13 @@ GET /t/:token - Tracking endpoint (IP, GeoIP, Telegram)
### Templates
```
GET /api/templates - Tüm şablonlar
GET /api/templates/:type - Şablon detay
POST /api/templates/preview - Önizleme
GET /api/templates - Tüm şablonlar
POST /api/templates - Yeni şablon oluştur
GET /api/templates/:id - Şablon detay (ID)
PUT /api/templates/:id - Şablon güncelle
DELETE /api/templates/:id - Şablon sil
GET /api/templates/type/:type - Şablon (type ile)
POST /api/templates/preview - Önizleme
```
### Settings