mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-30 12:16:07 +01:00
9 lines
291 B
JavaScript
9 lines
291 B
JavaScript
import rxjs from "../../lib/rx.js";
|
|
import ajax from "../../lib/ajax.js";
|
|
|
|
export function fileOptions(path) {
|
|
return ajax({
|
|
url: `/api/files/cat?path=${path}`,
|
|
method: "OPTIONS",
|
|
}).pipe(rxjs.map((res) => res.responseHeaders.allow.replace(/\r/, "").split(", ")));
|
|
}
|