jitsi shortened urls
This commit is contained in:
@@ -20,6 +20,10 @@ export class JitsiService {
|
||||
return this.http.post(environment.apiUrl + "/jitsi/rooms", jitsiRoom);
|
||||
}
|
||||
|
||||
createShortUrl(id) {
|
||||
return this.http.patch(environment.apiUrl + "/jitsi/rooms/" + id, null);
|
||||
}
|
||||
|
||||
delete(id) {
|
||||
return this.http.delete(environment.apiUrl + "/jitsi/rooms/" + id);
|
||||
}
|
||||
|
||||
@@ -11,6 +11,10 @@ export class UrlShortenerService {
|
||||
constructor(private http: HttpClient) {
|
||||
}
|
||||
|
||||
getModel(code: string): Promise<Object> {
|
||||
return this.http.get(environment.apiUrl + "/url/shortener/model/" + code).toPromise();
|
||||
}
|
||||
|
||||
get(page: number, size: number, sort: string, desc: boolean, search: string) {
|
||||
const httpParams = new HttpParams().set("page", "" + page).set("size", "" + size).set("sort", sort).set("desc", "" + desc).set("search", search);
|
||||
return this.http.get(environment.apiUrl + "/url/shortener", {params: httpParams});
|
||||
|
||||
Reference in New Issue
Block a user