fix token issues
This commit is contained in:
@@ -1,15 +1,18 @@
|
||||
import { Routes } from '@angular/router';
|
||||
import { AuthGuard } from './core/guards/auth.guard';
|
||||
import { LoginGuard } from './core/guards/login.guard';
|
||||
|
||||
export const routes: Routes = [
|
||||
{ path: '', redirectTo: '/dashboard', pathMatch: 'full' },
|
||||
{
|
||||
path: 'login',
|
||||
loadComponent: () => import('./auth/login/login.component').then(m => m.LoginComponent),
|
||||
canActivate: [LoginGuard],
|
||||
},
|
||||
{
|
||||
path: 'register',
|
||||
loadComponent: () => import('./auth/register/register.component').then(m => m.RegisterComponent),
|
||||
canActivate: [LoginGuard],
|
||||
},
|
||||
{
|
||||
path: 'oauth2/callback',
|
||||
|
||||
Reference in New Issue
Block a user