fix: remove model in adapter page (#2161)

This commit is contained in:
Yaodong Yu
2023-07-29 23:42:08 +08:00
committed by GitHub
parent ea10f8e615
commit 026fb207b3
8 changed files with 53 additions and 121 deletions

View File

@ -103,8 +103,8 @@ export function RemovePolicy(owner, name, policy) {
}).then(res => res.json());
}
export function syncPolicies(owner, name) {
return fetch(`${Setting.ServerUrl}/api/sync-policies?id=${owner}/${encodeURIComponent(name)}`, {
export function getPolicies(owner, name) {
return fetch(`${Setting.ServerUrl}/api/get-policies?id=${owner}/${encodeURIComponent(name)}`, {
method: "GET",
credentials: "include",
headers: {