Skip to content

Commit

Permalink
updaet code
Browse files Browse the repository at this point in the history
  • Loading branch information
nikiquickie committed Dec 5, 2024
1 parent cfddafd commit c6123f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { environment } from 'src/environments/environment';
import { AuthenticatedGuard } from './core/guards/authenticated.guard';
import { GuestGuard } from './core/guards/guest.guard';
import { AdminsGuard } from './core/guards/admins.guard';
import { HashLocationStrategy, LocationStrategy } from '@angular/common';

const routes: Routes = [
{
Expand Down Expand Up @@ -308,7 +309,7 @@ const routes: Routes = [
preloadingStrategy: PreloadAllModules
})
],
providers: [AuthenticatedGuard, GuestGuard, AdminsGuard],
providers: [AuthenticatedGuard, GuestGuard, AdminsGuard, { provide: LocationStrategy, useClass: HashLocationStrategy },],
bootstrap: [AppComponent]
})
export class AppModule {}

0 comments on commit c6123f9

Please sign in to comment.