Commit Graph

2 Commits

Author SHA1 Message Date
XPS\Micro
20a4d60f21 fix: Fix API paths in Dictionary template for Traefik routing
- API calls were using absolute paths (/api/words) but container runs under path prefix
- Added apiBase variable to extract current pathname
- All fetch calls now use relative paths: ${apiBase}/api/words
- Fixes 404 errors when accessing Dictionary template through Traefik
2026-03-19 07:18:15 +01:00
XPS\Micro
e811c4fe3d feat: Add user-template-dictionary with SQLite persistence
- New template: user-template-dictionary with Flask backend
- Features: Add/Edit/Delete words, SQLite database per user
- Persistent storage: Docker Volumes mount to /data/
- Modern HTML/CSS/JS Frontend with error handling
- REST API: GET/POST/PUT/DELETE endpoints
- Health checks and comprehensive logging
- Comprehensive documentation in docs/templates/DICTIONARY_TEMPLATE.md
- Updated templates.json and .env.example

Files:
- user-template-dictionary/Dockerfile
- user-template-dictionary/app.py
- user-template-dictionary/requirements.txt
- user-template-dictionary/templates/index.html
- docs/templates/DICTIONARY_TEMPLATE.md
- templates.json (updated)
- .env.example (updated)
2026-03-18 15:57:23 +01:00