Files
frontend-hideyoshi.com/src/app/app-router.module.ts
Vitor Hideyoshi 64ec23f2c1 [0.0.2] Adds Google and Github OAuth2 Login
Implements integration with the Backend API feature of OAuth2 Login with Google and Github.
2022-11-10 00:49:03 -03:00

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 { }