import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { LoginComponent } from './components/login/login.component';
import { HomeComponent } from './components/home/home.component';
import { NavbarComponent } from './components/navbar/navbar.component';
import { BuscarunidadeComponent } from './components/buscarunidade/buscarunidade.component';
import { GraficoComponent } from './components/grafico/grafico.component';
import { MapaComponent } from './components/mapa/mapa.component';
import { PerfilComponent } from './components/perfil/perfil.component';
import { CadPacienteComponent } from './components/cad-paciente/cad-paciente.component';
import { SobreNosComponent } from './components/sobre-nos/sobre-nos.component';
import { CadUnidadeComponent } from './components/cad-unidade/cad-unidade.component';
import { HomePrivadaComponent } from './components/home-privada/home-privada.component';
import { ListPacientesComponent } from './components/list-pacientes/list-pacientes.component';
import { InfoDoencaComponent } from './components/info-doenca/info-doenca.component';
import { PageNotFoundComponent } from './components/page-not-found/page-not-found.component';
import { SaibaMaisComponent } from './components/saiba-mais/saiba-mais.component';
import { GraficoSPComponent } from './components/grafico-sp/grafico-sp.component';

const routes: Routes = [
  {
    path: '',
    component: HomeComponent
  },
  {
    path: 'login', 
    component: LoginComponent
  },
  {
    path: 'home',
    component: HomeComponent
  },
  {
    path: 'navbar',
    component: NavbarComponent
  },
  {
    path: 'buscarunidades',
    component: BuscarunidadeComponent
  },
  {
    path: 'grafico', 
    component: GraficoComponent,
  },
  {
    path: 'mapa',
    component: MapaComponent,
  },
  {
    path: 'perfil',
    component: PerfilComponent
  },
  {
    path: 'cadPaciente',
    component: CadPacienteComponent
  },
  {
    path: 'attPaciente/:id',
    component: CadPacienteComponent
  },
  {
    path: 'sobre',
    component: SobreNosComponent
  },
  {
    path: 'cadUnidade',
    component: CadUnidadeComponent
  },
  {
    path: 'homePrivada',
    component: HomePrivadaComponent
  },  
  {
    path: 'list-pacientes',
    component: ListPacientesComponent
  },
  {
    path: 'info',
    component: InfoDoencaComponent
  },
  {
    path: 'saiba-mais/:id',
    component: SaibaMaisComponent
  },
  {
    path:'grafico.',
    component:GraficoSPComponent

  },
  {
     path: '**',
     component: PageNotFoundComponent,
   }
  

]

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
