import {Routes} from '@angular/router';
import {UploadComponent} from './upload/upload.component';
import {GalleryComponent} from './gallery/gallery.component';
import {PendingChangesGuard} from './upload/pending.guard';

export const routes: Routes = [
  {path: 'gallery', component: GalleryComponent},
  {path: '', component: UploadComponent, canDeactivate: [PendingChangesGuard]},
  {path: '**', redirectTo: ''},
];
