Fix getLdaps() GET

This commit is contained in:
Yang Luo
2023-02-18 16:27:47 +08:00
parent 3a70f4e788
commit 3ae81716b9
3 changed files with 6 additions and 6 deletions

View File

@ -16,7 +16,7 @@ import * as Setting from "../Setting";
export function getLdaps(owner) {
return fetch(`${Setting.ServerUrl}/api/get-ldaps?owner=${owner}`, {
method: "POST",
method: "GET",
credentials: "include",
headers: {
"Accept-Language": Setting.getAcceptLanguage(),
@ -26,7 +26,7 @@ export function getLdaps(owner) {
export function getLdap(id) {
return fetch(`${Setting.ServerUrl}/api/get-ldap?id=${id}`, {
method: "POST",
method: "GET",
credentials: "include",
headers: {
"Accept-Language": Setting.getAcceptLanguage(),