JWT key issue fix
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m24s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m24s
This commit is contained in:
parent
e1fdbd9388
commit
07aad3b8d4
5 changed files with 103 additions and 40 deletions
|
|
@ -471,9 +471,17 @@ class ApiClient {
|
|||
|
||||
// --- OnlyOffice ---
|
||||
async createOnlyOfficeFile(type: 'word' | 'slide') {
|
||||
const res = await this.request('/api/onlyoffice/create', {
|
||||
const res = await this.request('/onlyoffice/create', {
|
||||
method: 'POST',
|
||||
body: { type },
|
||||
body: JSON.stringify({ type })
|
||||
});
|
||||
return res.json();
|
||||
}
|
||||
|
||||
async signOnlyOfficeConfig(config: any) {
|
||||
const res = await this.request('/onlyoffice/sign', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(config)
|
||||
});
|
||||
return res.json();
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue