Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hrueger/ts-express-typeorm-api
- Owner: hrueger
- License: mit
- Created: 2020-04-16T20:09:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-12T07:30:56.000Z (over 3 years ago)
- Last Synced: 2024-04-23T02:15:15.317Z (10 months ago)
- Language: TypeScript
- Size: 371 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 { }```