Show resource list page to users.

This commit is contained in:
Yang Luo
2021-09-06 00:49:10 +08:00
parent f4a59de3a5
commit e4846807cd
6 changed files with 28 additions and 19 deletions

View File

@ -14,8 +14,8 @@
import * as Setting from "../Setting";
export function getResources(owner) {
return fetch(`${Setting.ServerUrl}/api/get-resources?owner=${owner}`, {
export function getResources(owner, user) {
return fetch(`${Setting.ServerUrl}/api/get-resources?owner=${owner}&user=${user}`, {
method: "GET",
credentials: "include"
}).then(res => res.json());