import { CommonModule } from '@angular/common';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { CreateApplicationComponent } from './applications/create-application/create-application.component';
import { StatusComponent } from './applications/status/status.component';
import { SharedModule } from './core/shared.module';
import { UiKitComponent } from './ui-kit/ui-kit.component';

const ApplicationRoutes: Routes = [
  {
    path: 'uikit',
    component: UiKitComponent
  },
  {
    path: 'applications/add',
    component: CreateApplicationComponent
  },
  {
    path: '**',
    component: StatusComponent
  }
];

@NgModule({
  imports: [
    RouterModule.forRoot(ApplicationRoutes, { onSameUrlNavigation: 'reload' }),
  ],
  exports: [RouterModule],
})
export class AppRoutingModule { }
