feat: add sharing management (#1178) (closes #1000)

This commit is contained in:
WeidiDeng
2020-12-25 02:02:28 +08:00
committed by GitHub
parent 8faa96f5e6
commit 677bce376b
10 changed files with 210 additions and 3 deletions

View File

@@ -1,5 +1,9 @@
import { fetchURL, fetchJSON, removePrefix } from './utils'
export async function list() {
return fetchJSON('/api/shares')
}
export async function getHash(hash) {
return fetchJSON(`/api/public/share/${hash}`)
}