refactor: separate API and SPA handling in server routes and add static file serving options
test: add tests for SPA handling and static file serving
feat: implement embedded SPA support for production and development environments
- Updated all relevant API functions in agent.ts, company.ts, customer-contact.ts, customer.ts, dashboard.ts, ticket-config.ts, and ticket.ts to point to the new /api/dashboard paths.
- Ensured that all request methods and payload structures remain unchanged to maintain existing functionality.