blob: 64bfe6724914d977ea454f13986d67b94909f8c9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/*
import got from "got";
import FormData from "form-data";
import stream from "stream";
import config from "../../config";
export interface DriveFile {
id: string;
}
export const client = got.extend({
prefixUrl: config.misskey.instance,
});
export function upload(buf: Buffer, filename: string) {
const body = new FormData();
body.append("i", config.misskey.token);
body.append("file", buf, { filename });
return client.post("drive/files/create", { body }).json<DriveFile>();
};
export function createNote() {
}
*/
|