Skip to content

Instantly share code, notes, and snippets.

@jsinglet
Last active February 16, 2021 19:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsinglet/df46a7a9f2190e945ac2ce5acd2e65d4 to your computer and use it in GitHub Desktop.
Save jsinglet/df46a7a9f2190e945ac2ce5acd2e65d4 to your computer and use it in GitHub Desktop.
import { NgModule } from "@angular/core";
import { CookieModule } from "ngx-cookie";
import { CommonModule } from "@angular/common";
import { HTTP_INTERCEPTORS } from "@angular/common/http";
import { TenantInterceptor } from "./tenant.interceptor";
@NgModule({
declarations: [],
imports: [CommonModule],
providers: [
{
provide: HTTP_INTERCEPTORS,
useClass: TenantInterceptor,
multi: true
}
]
})
export class TenantModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment