|
@@ -1,12 +1,19 @@
|
|
|
import { NgModule } from '@angular/core';
|
|
import { NgModule } from '@angular/core';
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
|
+import { AuthGuard } from '@auth0/auth0-angular';
|
|
|
import { HomePageComponent } from './pages/home-page/home-page.component';
|
|
import { HomePageComponent } from './pages/home-page/home-page.component';
|
|
|
|
|
+import { TracksPageComponent } from './pages/tracks-page/tracks-page.component';
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
const routes: Routes = [
|
|
|
{
|
|
{
|
|
|
path: '',
|
|
path: '',
|
|
|
- component: HomePageComponent
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ component: HomePageComponent,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ path: 'tracks',
|
|
|
|
|
+ component: TracksPageComponent,
|
|
|
|
|
+ canActivate: [AuthGuard],
|
|
|
|
|
+ },
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
@NgModule({
|