1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Move to angular cli

This commit is contained in:
Chocobozzz 2017-12-11 17:36:46 +01:00 committed by Chocobozzz
parent 908f6e5e38
commit 63c4db6d71
No known key found for this signature in database
GPG key ID: 583A612D890159BE
74 changed files with 1028 additions and 1712 deletions

View file

@ -2,13 +2,13 @@ import { HttpClient } from '@angular/common/http'
import { Injectable } from '@angular/core'
import 'rxjs/add/operator/do'
import { ReplaySubject } from 'rxjs/ReplaySubject'
import { ServerConfig } from '../../../../../shared'
import { environment } from '../../../environments/environment'
@Injectable()
export class ServerService {
private static BASE_CONFIG_URL = API_URL + '/api/v1/config/'
private static BASE_VIDEO_URL = API_URL + '/api/v1/videos/'
private static BASE_CONFIG_URL = environment.apiUrl + '/api/v1/config/'
private static BASE_VIDEO_URL = environment.apiUrl + '/api/v1/videos/'
videoPrivaciesLoaded = new ReplaySubject<boolean>(1)
videoCategoriesLoaded = new ReplaySubject<boolean>(1)