import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { JumpComponent } from './jump.component';
import { JumpResolver } from './jump-resolver.service';
import { AuthGuard } from 'src/app/core/services';

const routes: Routes = [
    {
        path: ':slug',
        component: JumpComponent,
        canActivate: [AuthGuard],
        resolve: {
            jump: JumpResolver
        }
    }
];

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