diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-08-23 16:54:21 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-08-23 16:54:21 +0200 |
commit | de59c48f5f317018e3f746bbe4a7b7efe00109f2 (patch) | |
tree | bc3d007c5aaed8dc72119763f3b1731c5777f218 /client/src/main.ts | |
parent | def16d33d19153c6583fa8a30634760b3d64d34c (diff) | |
download | PeerTube-de59c48f5f317018e3f746bbe4a7b7efe00109f2.tar.gz PeerTube-de59c48f5f317018e3f746bbe4a7b7efe00109f2.tar.zst PeerTube-de59c48f5f317018e3f746bbe4a7b7efe00109f2.zip |
Client: centralize http res extraction in a service
Diffstat (limited to 'client/src/main.ts')
-rw-r--r-- | client/src/main.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/main.ts b/client/src/main.ts index 7c058e12f..7caabe914 100644 --- a/client/src/main.ts +++ b/client/src/main.ts | |||
@@ -9,7 +9,7 @@ import { bootstrap } from '@angular/platform-browser-dynamic'; | |||
9 | import { provideRouter } from '@angular/router'; | 9 | import { provideRouter } from '@angular/router'; |
10 | 10 | ||
11 | import { routes } from './app/app.routes'; | 11 | import { routes } from './app/app.routes'; |
12 | import { AuthHttp, AuthService } from './app/shared'; | 12 | import { AuthHttp, AuthService, RestExtractor } from './app/shared'; |
13 | import { AppComponent } from './app/app.component'; | 13 | import { AppComponent } from './app/app.component'; |
14 | 14 | ||
15 | if (process.env.ENV === 'production') { | 15 | if (process.env.ENV === 'production') { |
@@ -26,6 +26,7 @@ bootstrap(AppComponent, [ | |||
26 | }), | 26 | }), |
27 | 27 | ||
28 | AuthService, | 28 | AuthService, |
29 | RestExtractor, | ||
29 | 30 | ||
30 | provideRouter(routes), | 31 | provideRouter(routes), |
31 | 32 | ||