1 parent
8faa96f5e6
commit
677bce376b
10 files changed
+210
-3
No files matched your search
@@ -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}`)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user