UI and backend for basic OCR functionality
This commit is contained in:
19
frontend/src/app/app.routes.ts
Normal file
19
frontend/src/app/app.routes.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Routes } from '@angular/router';
|
||||
import { LoginComponent } from './login/login.component';
|
||||
import { AdminLayoutComponent } from './admin-layout/admin-layout.component';
|
||||
import { OcrComponent } from './ocr/ocr.component';
|
||||
import { AuthGuard } from './auth.guard';
|
||||
|
||||
export const routes: Routes = [
|
||||
{ path: 'login', component: LoginComponent },
|
||||
{
|
||||
path: '',
|
||||
component: AdminLayoutComponent,
|
||||
canActivate: [AuthGuard],
|
||||
children: [
|
||||
{ path: '', redirectTo: 'ocr', pathMatch: 'full' },
|
||||
{ path: 'ocr', component: OcrComponent }
|
||||
]
|
||||
},
|
||||
{ path: '**', redirectTo: '' }
|
||||
];
|
||||
Reference in New Issue
Block a user