Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
This commit is contained in:
Max Schmidt 2023-05-19 10:52:25 +02:00
parent a3e58fecd6
commit b1c2315eca

View File

@ -10,4 +10,4 @@ export const getPosts = async () =>
export const getPost = async (id: string) => export const getPost = async (id: string) =>
(await (await fetch(`${url}/api/posts/${id}`)).json()) as Post; (await (await fetch(`${url}/api/posts/${id}`)).json()) as Post;
export const getImageSrc = (src: string) => `${url}/media/${src}}`; export const getImageSrc = (src: string) => `${url}/media/${src}`;