Implements integration with the Backend API feature of OAuth2 Login with Google and Github.
34 lines
741 B
TypeScript
34 lines
741 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { CommonModule } from '@angular/common';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { HomeComponent } from './home/home.component';
|
|
import { CallbackComponent } from './header/header-popup/callback/callback.component';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
path: '',
|
|
redirectTo: '/home',
|
|
pathMatch: 'full'
|
|
},
|
|
{
|
|
path: 'home',
|
|
component: HomeComponent
|
|
},
|
|
{
|
|
path: 'callback',
|
|
component: CallbackComponent
|
|
}
|
|
]
|
|
|
|
@NgModule({
|
|
declarations: [],
|
|
imports: [
|
|
CommonModule,
|
|
RouterModule.forRoot(routes)
|
|
],
|
|
exports: [
|
|
RouterModule
|
|
]
|
|
})
|
|
export class AppRouterModule { }
|