jitsi shortened urls

This commit is contained in:
_Bastler
2021-06-09 09:16:47 +02:00
parent 86492f3590
commit e6742f1cc5
7 changed files with 40 additions and 19 deletions
+4
View File
@@ -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);
}
+4
View File
@@ -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});