mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-05 05:50:19 +08:00
Replace getDefaultApplication() with getUserApplication().
This commit is contained in:
@ -28,8 +28,8 @@ export function getApplication(owner, name) {
|
||||
}).then(res => res.json());
|
||||
}
|
||||
|
||||
export function getDefaultApplication(owner) {
|
||||
return fetch(`${Setting.ServerUrl}/api/get-default-application?owner=${owner}`, {
|
||||
export function getUserApplication(owner, name) {
|
||||
return fetch(`${Setting.ServerUrl}/api/get-user-application?id=${owner}/${encodeURIComponent(name)}`, {
|
||||
method: "GET",
|
||||
credentials: "include"
|
||||
}).then(res => res.json());
|
||||
|
Reference in New Issue
Block a user