Build failure fixes
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m21s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m21s
This commit is contained in:
parent
d80e31e7f5
commit
6a754808b5
3 changed files with 16 additions and 6 deletions
|
|
@ -468,6 +468,15 @@ class ApiClient {
|
|||
}
|
||||
return url;
|
||||
}
|
||||
|
||||
// --- OnlyOffice ---
|
||||
async createOnlyOfficeFile(type: 'word' | 'slide') {
|
||||
const res = await this.request('/api/onlyoffice/create', {
|
||||
method: 'POST',
|
||||
body: { type },
|
||||
});
|
||||
return res.json();
|
||||
}
|
||||
}
|
||||
|
||||
export const api = new ApiClient();
|
||||
|
|
|
|||
Reference in a new issue