add open-with-web endpoint, needs cs3org/reva#3143

This commit is contained in:
Willy Kloucek
2022-08-10 15:59:29 +02:00
parent 4c6f26a8db
commit f9a25c0625
2 changed files with 16 additions and 6 deletions

View File

@@ -22,9 +22,10 @@ The capabilities endpoint (e.g. `https://localhost:9200/ocs/v1.php/cloud/capabil
"app_providers": [
{
"enabled": true,
"version": "1.0.0",
"version": "1.1.0",
"apps_url": "/app/list",
"open_url": "/app/open",
"open_web_url": "/app/open-in-web",
"new_url": "/app/new"
}
]

View File

@@ -23,11 +23,12 @@ func FrontendConfigFromStruct(cfg *config.Config) map[string]interface{} {
appProviders := []map[string]interface{}{
{
"enabled": true,
"version": "1.0.0",
"apps_url": "/app/list",
"open_url": "/app/open",
"new_url": "/app/new",
"enabled": true,
"version": "1.1.0",
"apps_url": "/app/list",
"open_url": "/app/open",
"open_web_url": "/app/open-in-web",
"new_url": "/app/new",
},
}
@@ -88,6 +89,14 @@ func FrontendConfigFromStruct(cfg *config.Config) map[string]interface{} {
"transfer_shared_secret": cfg.TransferSecret,
"timeout": 86400,
"insecure": cfg.AppHandler.Insecure,
"webbaseuri": "https://ocis.owncloud.test/external",
"web": map[string]interface{}{
"urlparamsmapping": map[string]string{
// param -> value mapper
"fileId": "fileid",
"app": "appname",
},
},
},
"archiver": map[string]interface{}{
"prefix": cfg.Archiver.Prefix,