import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { JobsComponent } from './jobs/jobs.component';
import { JobDetailsComponent } from './job/job-details/job-details.component';

const routes: Routes = [
    {
        path: '',
        component: JobsComponent
    },
    {
        path: 'new',
        component: JobDetailsComponent
    },
    {
        path: ':id',
        component: JobDetailsComponent
    }
];

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