Display the list of spaces
This commit is contained in:
12
matrixgw_frontend/src/api/matrix/MatrixApiMedia.ts
Normal file
12
matrixgw_frontend/src/api/matrix/MatrixApiMedia.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { APIClient } from "../ApiClient";
|
||||
|
||||
export class MatrixApiMedia {
|
||||
/**
|
||||
* Get media URL
|
||||
*/
|
||||
static MediaURL(url: string, thumbnail: boolean): string {
|
||||
return `${APIClient.ActualBackendURL()}/matrix/media/${encodeURIComponent(
|
||||
url
|
||||
)}?thumbnail=${thumbnail}`;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user