mirror of
https://github.com/mempool/mempool.git
synced 2025-02-26 23:50:16 +01:00
23 lines
No EOL
726 B
TypeScript
23 lines
No EOL
726 B
TypeScript
import { HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
import { NgModule } from '@angular/core';
|
|
import { ServerModule } from '@angular/platform-server';
|
|
|
|
import { ZONE_SERVICE } from './injection-tokens';
|
|
import { AppModule } from './app.module';
|
|
import { AppComponent } from './components/app/app.component';
|
|
import { HttpCacheInterceptor } from './services/http-cache.interceptor';
|
|
import { ZoneService } from './services/zone.service';
|
|
|
|
|
|
@NgModule({
|
|
imports: [
|
|
AppModule,
|
|
ServerModule,
|
|
],
|
|
providers: [
|
|
{ provide: HTTP_INTERCEPTORS, useClass: HttpCacheInterceptor, multi: true },
|
|
{ provide: ZONE_SERVICE, useClass: ZoneService },
|
|
],
|
|
bootstrap: [AppComponent],
|
|
})
|
|
export class AppServerModule {} |