修复文件夹命名错误,添加命名空间

This commit is contained in:
2025-05-12 15:54:06 +08:00
parent 9133b45744
commit 259fae4c63
6 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
import fetcher from "@/lib/api/fetcher";
type UpdateResourceParams = {
title: string;
description: string;
imageUrl: string;
link: string;
tags: {
name: string;
type: string;
}[];
}
export async function update(id: string, data: UpdateResourceParams) {
return fetcher(`/admin/web/resource/${id}`, {
method: 'POST',
body: JSON.stringify(data)
})
}