import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { HomePageComponent } from './pages/home-page/home-page.component';
import { SitioContruccionComponent } from './pages/sitio-contruccion/sitio-contruccion.component';
import { LineaComponent } from './pages/linea/linea.component';
import { ProductoComponent } from './pages/producto/producto.component';
import { CotizacionComponent } from './pages/cotizacion/cotizacion.component';

const routes: Routes = [
  { path: '', component: HomePageComponent },
  { path: 'linea/:tipo', component: LineaComponent },
  { path: 'linea/:tipo/:producto', component: ProductoComponent },
  { path: 'cotizacion', component: CotizacionComponent },
  { path: '404', component: SitioContruccionComponent },
];

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