initial commit

This commit is contained in:
2022-12-22 16:38:25 +01:00
commit a3f54bb537
143 changed files with 24386 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {AuthGuard} from './shared/guards/auth.guard';
const routes: Routes = [
{
path: '',
redirectTo: 'home',
pathMatch: 'full'
},
{
path: 'home',
loadChildren: () => import('./home/home.module').then(m => m.HomeModule),
},
{
path: 'auth',
loadChildren: () => import('./authorization/authorization.module').then(m => m.AuthorizationModule),
},
{
path: 'sync',
loadChildren: () => import('./sync/sync.module').then(m => m.SyncModule),
canActivate: [AuthGuard],
},
{
path: 'followings',
loadChildren: () => import('./followings/followings.module').then(m => m.FollowingsModule),
canActivate: [AuthGuard],
},
{
path: 'matrix',
loadChildren: () => import('./followings-matrix/followings-matrix.module').then(m => m.FollowingsMatrixModule),
canActivate: [AuthGuard],
},
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule {
}