Add router and homepage
This commit is contained in:
85
src/app/app-routing.module.ts
Normal file
85
src/app/app-routing.module.ts
Normal file
@@ -0,0 +1,85 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
import { HomeComponent } from './home/home.component';
|
||||
|
||||
const routes: Routes = [
|
||||
// No logged pages
|
||||
{ path: '', component: HomeComponent, },
|
||||
// {
|
||||
// path: 'login',
|
||||
// component: LoginComponent,
|
||||
// canActivate: [ AuthGuard ],
|
||||
// data: {
|
||||
// title: 'Créez-vous ou connectez-vous à votre compte',
|
||||
// description: 'Venez vous créer un compte sur notre platforme, grâce à notre application web et mobile vous serez prêt pour tout' +
|
||||
// 'les cas de figure',
|
||||
// noindex: true,
|
||||
// nofollow: true,
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// path: 'verification/:id',
|
||||
// component: VerificationComponent,
|
||||
// data: {
|
||||
// noindex: true,
|
||||
// nofollow: true,
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// path: 'password/:id',
|
||||
// component: PasswordComponent,
|
||||
// data: {
|
||||
// noindex: true,
|
||||
// nofollow: true,
|
||||
// },
|
||||
// },
|
||||
//
|
||||
// // Logged pages
|
||||
// {
|
||||
// path: 'dashboard',
|
||||
// component: DashboardComponent,
|
||||
// canActivate: [ AuthGuard ],
|
||||
// data: {
|
||||
// title: 'Mom dashboard',
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// path: 'vehicles',
|
||||
// component: CarsComponent,
|
||||
// canActivate: [ AuthGuard ],
|
||||
// data: {
|
||||
// title: 'Mes véhicules',
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// path: 'reports',
|
||||
// component: ReportsComponent,
|
||||
// canActivate: [ AuthGuard ],
|
||||
// data: {
|
||||
// title: 'Mes constat',
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// path: 'reports/:id',
|
||||
// component: ReportDetailsComponent,
|
||||
// canActivate: [ AuthGuard ],
|
||||
// data: {
|
||||
// title: 'Détail d\'un constat',
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// path: 'profile',
|
||||
// component: ProfileComponent,
|
||||
// canActivate: [ AuthGuard ],
|
||||
// data: {
|
||||
// title: 'Mon Profil',
|
||||
// },
|
||||
// },
|
||||
];
|
||||
|
||||
@NgModule( {
|
||||
imports: [ RouterModule.forRoot( routes ) ],
|
||||
exports: [ RouterModule ]
|
||||
} )
|
||||
export class AppRoutingModule {
|
||||
}
|
||||
Reference in New Issue
Block a user