Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hrueger/ts-express-typeorm-api

A test api
https://github.com/hrueger/ts-express-typeorm-api

Last synced: 16 days ago
JSON representation

A test api

Awesome Lists containing this project

README

        

# TS + Express + TypeOrm API Example

> for Jumagoro ;-)

## Registering of the interceptors:
`app.module.ts`:
```TypeScript
// Imports

@NgModule({
bootstrap: [AppComponent],
declarations: [
AppComponent,
...
],
imports: [
BrowserAnimationsModule,
BrowserModule,
HttpClientModule, // for the HttpCLient
...
],
providers: [
...
{ provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true },
{ provide: HTTP_INTERCEPTORS, useClass: JwtInterceptor, multi: true },
],
})
export class AppModule { }

```