Skip to content

Commit

Permalink
Fix formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe committed Oct 5, 2024
1 parent 492d444 commit 595b4ec
Showing 1 changed file with 25 additions and 21 deletions.
46 changes: 25 additions & 21 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@
* See the License for the specific language governing permissions and limitations under the License.
*/

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { Routes, RouterModule } from '@angular/router';
import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
import {Routes, RouterModule} from '@angular/router';
import {
OKTA_CONFIG,
OktaAuthGuard,
OktaAuthModule,
OktaCallbackComponent,
} from '@okta/okta-angular';
import { OktaAuth } from '@okta/okta-auth-js';
import { AppComponent } from './app.component';
import { HomeComponent } from './home/home.component';
import { MessagesComponent } from './messages/messages.component';
import { ProfileComponent } from './profile/profile.component';
import {OktaAuth} from '@okta/okta-auth-js';
import {AppComponent} from './app.component';
import {HomeComponent} from './home/home.component';
import {MessagesComponent} from './messages/messages.component';
import {ProfileComponent} from './profile/profile.component';

import oktaConfig from './app.config';

Expand All @@ -42,22 +42,26 @@ const appRoutes: Routes = [
{
path: 'profile',
component: ProfileComponent,
canActivate: [ OktaAuthGuard ]
canActivate: [OktaAuthGuard]
},
{
path: 'messages',
component: MessagesComponent,
canActivate: [ OktaAuthGuard ]
canActivate: [OktaAuthGuard]
},
];

@NgModule({ declarations: [
AppComponent,
HomeComponent,
ProfileComponent,
MessagesComponent
],
bootstrap: [AppComponent], imports: [BrowserModule,
RouterModule.forRoot(appRoutes),
OktaAuthModule.forRoot({ oktaAuth })], providers: [provideHttpClient(withInterceptorsFromDi())] })
export class AppModule { }
@NgModule({
declarations: [
AppComponent,
HomeComponent,
ProfileComponent,
MessagesComponent
],
bootstrap: [AppComponent],
imports: [BrowserModule,
RouterModule.forRoot(appRoutes),
OktaAuthModule.forRoot({oktaAuth})], providers: [provideHttpClient(withInterceptorsFromDi())]
})
export class AppModule {
}

0 comments on commit 595b4ec

Please sign in to comment.