feat: implement QuestionBank CRUD with pagination and template query

- Add pagination support to findAll (page, limit query params)
- Add findByTemplateId method to service
- Add GET /by-template/:templateId endpoint to controller
- Service already includes CRUD for QuestionBank and QuestionBankItem
This commit is contained in:
Developer
2026-04-23 17:19:11 +08:00
commit 0a9588abb7
492 changed files with 112453 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
# API base URL (relative path to backend)
VITE_API_BASE_URL=/api
# Allowed hosts for API connection (comma-separated)
# Example: VITE_ALLOWED_HOSTS=localhost,127.0.0.1,example.com
VITE_ALLOWED_HOSTS=localhost,127.0.0.1,0.0.0.0
# Vite server configuration
VITE_PORT=13001
VITE_HOST=0.0.0.0
VITE_BACKEND_URL=http://localhost:3001
# Interface language (zh, en, ja)
VITE_DEFAULT_LANGUAGE=en