import { Routes } from '@angular/router';
import { LoginComponent } from './login/login.component';
import { MachineSlotsComponent } from './machine-slots/machine-slots.component';
import { PaymentSuccessComponent } from './payment-success/payment-success.component';
import { PaymentFailureComponent } from './payment-failure/payment-failure.component';

export const routes: Routes = [
  { path: 'login', component: LoginComponent},
  { path: '', redirectTo: 'login', pathMatch: 'full' },
  { path: 'machine-slots/:id', component: MachineSlotsComponent},
  { path: 'payment/success', component: PaymentSuccessComponent },
  { path: 'payment/failure', component: PaymentFailureComponent }
];