mempool/frontend/src/app/app.server.module.ts

20 lines
565 B
TypeScript
Raw Normal View History

import { HTTP_INTERCEPTORS } from '@angular/common/http';
2020-11-07 04:30:52 +07:00
import { NgModule } from '@angular/core';
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';
import { HttpCacheInterceptor } from './services/http-cache.interceptor';
2020-11-07 04:30:52 +07:00
@NgModule({
imports: [
AppModule,
ServerModule,
],
providers: [
{ provide: HTTP_INTERCEPTORS, useClass: HttpCacheInterceptor, multi: true }
2020-11-07 04:30:52 +07:00
],
bootstrap: [AppComponent],
})
export class AppServerModule {}