mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 08:22:24 +01:00
14 lines
277 B
JavaScript
14 lines
277 B
JavaScript
import rxjs from "../lib/rx.js";
|
|
import ajax from "../lib/ajax.js";
|
|
|
|
const config$ = ajax({
|
|
url: "/api/config",
|
|
method: "GET",
|
|
responseType: "json",
|
|
}).pipe(
|
|
rxjs.map(({ responseJSON }) => responseJSON.result),
|
|
);
|
|
|
|
export function get() {
|
|
return config$;
|
|
}
|