feat: implement proxy routes for APIs, add Pinia stores for loket, clinic, and queue management, and create new pages for admin and anjungan dashboard.
This commit is contained in:
No files matched your search
@@ -18,8 +18,8 @@ export interface VisitStats {
|
||||
|
||||
export const useVisitAPI = () => {
|
||||
const config = useRuntimeConfig();
|
||||
// We use the configured proxy path to avoid CORS issues
|
||||
const statsURL = '/stats-api/visit/stats';
|
||||
// We use the configured external API URL directly
|
||||
const statsURL = `${config.public.externalApiBaseUrl}/visit/stats`;
|
||||
|
||||
/**
|
||||
* Fetch visit statistics
|
||||
|
||||
Reference in New Issue
Block a user