mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-17 15:47:31 -03:00
Añadido el update para las imagenes
This commit is contained in:
@@ -7,7 +7,7 @@ export async function updatePost(post: Post, callbackfn: Function, message: stri
|
||||
try {
|
||||
const formData = new FormData();
|
||||
formData.append("content", post.content);
|
||||
formData.append("imageUrl", post.imageUrl||"");
|
||||
formData.append("image", post.image||"");
|
||||
|
||||
const req = await fetch(get(apiBase) + `/api/posts/${post.id}`, {
|
||||
method: 'PUT',
|
||||
|
||||
Reference in New Issue
Block a user