mirror of
https://github.com/v0l/route96.git
synced 2025-06-17 14:25:31 +00:00
fix: method tag for media upload
This commit is contained in:
@ -41,7 +41,7 @@ export class Blossom {
|
|||||||
);
|
);
|
||||||
const tags = [["x", bytesToString("hex", new Uint8Array(hash))]];
|
const tags = [["x", bytesToString("hex", new Uint8Array(hash))]];
|
||||||
|
|
||||||
const rsp = await this.#req("media", "PUT", "upload", file, tags);
|
const rsp = await this.#req("media", "PUT", "media", file, tags);
|
||||||
if (rsp.ok) {
|
if (rsp.ok) {
|
||||||
return (await rsp.json()) as BlobDescriptor;
|
return (await rsp.json()) as BlobDescriptor;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user