blob: 53d4c98a01c3ad1f135bd3a06bbcf8cfd7bd52e7 (
plain)
1
2
3
4
5
6
7
8
9
10
|
import { api } from './api';
export async function getImg(imgId: string) {
if(imgId == null || imgId == '' || imgId == undefined) return null;
const response = await api('get', `image/${imgId}`)
if(response.status !== 200) return `Server error: ${response.status}`;
return response.text();
}
|