rename admin to dashboard
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { Routes } from '@angular/router';
|
||||
import { HomeComponent } from './routes/home/home.component';
|
||||
import { PostComponent } from './routes/post/post.component';
|
||||
import { AdminComponent } from './routes/admin/admin.component';
|
||||
import { DashboardComponent } from './routes/dashboard/dashboard.component';
|
||||
import { LoggedInGuard } from './shared/guards/logged-in.guard';
|
||||
import { PostEditorComponent } from './components/post-editor/post-editor.component';
|
||||
import { CreatePostComponent } from './routes/post/create-post/create-post.component';
|
||||
@ -20,6 +20,10 @@ export const routes: Routes = [
|
||||
},
|
||||
],
|
||||
},
|
||||
{ path: 'admin', component: AdminComponent, canActivate: [LoggedInGuard] },
|
||||
{
|
||||
path: 'dashboard',
|
||||
component: DashboardComponent,
|
||||
canActivate: [LoggedInGuard],
|
||||
},
|
||||
{ path: 'tst', component: PostEditorComponent },
|
||||
];
|
||||
|
Reference in New Issue
Block a user