Restaura endpoint de relatórios no dashboard
This commit is contained in:
parent
c9c2f2fffb
commit
6c243ef2c5
|
|
@ -202,13 +202,13 @@ export class Dashboard implements OnInit, AfterViewInit, OnDestroy {
|
||||||
} catch {
|
} catch {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.errorMsg =
|
this.errorMsg =
|
||||||
'Falha ao carregar Dashboard. Verifique se a API está rodando e o endpoint /api/dashboard está acessível.';
|
'Falha ao carregar Dashboard. Verifique se a API está rodando e o endpoint /api/relatorios/dashboard está acessível.';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async fetchDashboardReal(): Promise<DashboardDto> {
|
private async fetchDashboardReal(): Promise<DashboardDto> {
|
||||||
if (!isPlatformBrowser(this.platformId)) throw new Error('SSR não suportado para charts');
|
if (!isPlatformBrowser(this.platformId)) throw new Error('SSR não suportado para charts');
|
||||||
const url = `${this.baseApi}/dashboard`;
|
const url = `${this.baseApi}/relatorios/dashboard`;
|
||||||
return await firstValueFrom(this.http.get<DashboardDto>(url));
|
return await firstValueFrom(this.http.get<DashboardDto>(url));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue