2020-11-27 18:41:57 +07:00
|
|
|
import { HTTP_INTERCEPTORS } from '@angular/common/http';
|
2020-11-07 04:30:52 +07:00
|
|
|
import { NgModule } from '@angular/core';
|
2023-10-18 23:04:21 +00:00
|
|
|
import { ServerModule } from '@angular/platform-server';
|
2020-11-07 04:30:52 +07:00
|
|
|
|
|
|
|
import { AppModule } from './app.module';
|
|
|
|
import { AppComponent } from './components/app/app.component';
|
2020-11-27 18:41:57 +07:00
|
|
|
import { HttpCacheInterceptor } from './services/http-cache.interceptor';
|
2020-11-07 04:30:52 +07:00
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
AppModule,
|
|
|
|
ServerModule,
|
2020-11-27 18:41:57 +07:00
|
|
|
],
|
|
|
|
providers: [
|
|
|
|
{ provide: HTTP_INTERCEPTORS, useClass: HttpCacheInterceptor, multi: true }
|
2020-11-07 04:30:52 +07:00
|
|
|
],
|
|
|
|
bootstrap: [AppComponent],
|
|
|
|
})
|
|
|
|
export class AppServerModule {}
|