Restaura endpoint de relatórios no dashboard

This commit is contained in:
Eduardo Lopes 2026-01-22 14:11:59 -03:00
parent c9c2f2fffb
commit 6c243ef2c5
1 changed files with 2 additions and 2 deletions

View File

@ -202,13 +202,13 @@ export class Dashboard implements OnInit, AfterViewInit, OnDestroy {
} catch {
this.loading = false;
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> {
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));
}