- Replaced file-based skill category loading with API calls in the GET and POST methods of the skills route. - Added new `SkillsService` for handling skill category operations. - Updated SQL initialization script to create `skill_categories`, `skills`, and `skill_links` tables with appropriate relationships. - Enhanced `ApiClient` with methods for loading skill categories and creating new skills, improving API interaction. - Introduced error handling for skill category creation and loading processes.
19 lines
655 B
TypeScript
19 lines
655 B
TypeScript
// Server-side services (Node.js only)
|
|
// Note: These exports are only for server-side usage (API routes)
|
|
// Don't import from this index in client-side code to avoid bundling server dependencies
|
|
|
|
// Database services (server-only)
|
|
export { getPool, closePool } from "./database";
|
|
|
|
// Evaluation services (server-only)
|
|
export { EvaluationService, evaluationService } from "./evaluation-service";
|
|
|
|
// Teams services (server-only)
|
|
export { TeamsService } from "./teams-service";
|
|
|
|
// Skills services (server-only)
|
|
export { SkillsService } from "./skills-service";
|
|
|
|
// API client (can be used client-side)
|
|
export { ApiClient, apiClient } from "./api-client";
|