orgnote-api 0.11.1 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +1 -1
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { Stream } from 'stream';
|
|
|
10
10
|
// NOTE: patch cause of incorrect generated api (form-data and swaggo)
|
|
11
11
|
export const initFilesApi = (axiosInstance: Axios) => {
|
|
12
12
|
return {
|
|
13
|
-
|
|
13
|
+
uploadFile: async (file: File) => {
|
|
14
14
|
const formData = new FormData();
|
|
15
15
|
formData.append('files', file);
|
|
16
16
|
const response = await axiosInstance.post('/files/upload', formData, {
|