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

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

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