Skip to content

Commit

Permalink
atualiza app routing
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcosatc147 committed Nov 15, 2023
1 parent f922e76 commit 25532e2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import { AuthGuard } from './services/auth.guard';
import { EditUserComponent } from './pages/edit-user/edit-user.component';
import { SuggestAgendaComponent } from './pages/suggest-agenda/suggest-agenda.component';
import { ParticipateComponent } from './pages/participate/participate.component';
import { GridDaysComponent } from './pages/grid-days/grid-days.component';
import { GridComponent } from './pages/grid/grid.component';


const routes: Routes = [
{ path: 'login', component: LoginComponent },
Expand All @@ -28,7 +31,9 @@ const routes: Routes = [
{ path: 'participate', component: ParticipateComponent },
{ path: 'profile', component: ProfileComponent, canActivate: [AuthGuard], },
{ path: 'editUser/:id', component: EditUserComponent, canActivate: [AuthGuard], },
{ path: '', component: HomePageComponent, canActivate: [AuthGuard], }
{ path: '', component: HomePageComponent, canActivate: [AuthGuard], },
{ path: 'grid-days', component: GridDaysComponent },
{ path: 'grid-days/:day', component: GridComponent },
];

@NgModule({
Expand Down
4 changes: 4 additions & 0 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import { AuthService } from './services/auth.service';
import { EditUserComponent } from './pages/edit-user/edit-user.component';
import { SuggestAgendaComponent } from './pages/suggest-agenda/suggest-agenda.component';
import { ParticipateComponent } from './pages/participate/participate.component';
import { GridComponent } from './pages/grid/grid.component';
import { GridDaysComponent } from './pages/grid-days/grid-days.component';

@NgModule({
declarations: [
Expand All @@ -44,6 +46,8 @@ import { ParticipateComponent } from './pages/participate/participate.component'
EditUserComponent,
SuggestAgendaComponent,
ParticipateComponent,
GridComponent,
GridDaysComponent,
],
imports: [
BrowserModule,
Expand Down

0 comments on commit 25532e2

Please sign in to comment.