add new file url of the app provider to the ocs capabilities
This commit is contained in:
3 files changed
+16
-1
No files matched your search
@@ -0,0 +1,8 @@
|
|||||||
|
Enhancement: add new file url of the app provider to the ocs capabilities
|
||||||
|
|
||||||
|
We've added the new file capability of the app provider to the ocs capabilities, so that
|
||||||
|
clients can discover this url analogous to the app list and file open urls.
|
||||||
|
|
||||||
|
https://github.com/owncloud/ocis/pull/2884
|
||||||
|
https://github.com/cs3org/reva/pull/2379
|
||||||
|
https://github.com/owncloud/web/pull/5890#issuecomment-993905242
|
||||||
@@ -24,7 +24,8 @@ The capabilities endpoint (eg. `https://localhost:9200/ocs/v1.php/cloud/capabili
|
|||||||
"enabled": true,
|
"enabled": true,
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"apps_url": "/app/list",
|
"apps_url": "/app/list",
|
||||||
"open_url": "/app/open"
|
"open_url": "/app/open",
|
||||||
|
"new_url": "/app/new"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ type AppProvider struct {
|
|||||||
WopiDriver WopiDriver `ocisConfig:"wopi_driver"`
|
WopiDriver WopiDriver `ocisConfig:"wopi_driver"`
|
||||||
AppsURL string `ocisConfig:"apps_url"`
|
AppsURL string `ocisConfig:"apps_url"`
|
||||||
OpenURL string `ocisConfig:"open_url"`
|
OpenURL string `ocisConfig:"open_url"`
|
||||||
|
NewURL string `ocisConfig:"new_url"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type WopiDriver struct {
|
type WopiDriver struct {
|
||||||
@@ -938,6 +939,7 @@ func DefaultConfig() *Config {
|
|||||||
WopiDriver: WopiDriver{},
|
WopiDriver: WopiDriver{},
|
||||||
AppsURL: "/app/list",
|
AppsURL: "/app/list",
|
||||||
OpenURL: "/app/open",
|
OpenURL: "/app/open",
|
||||||
|
NewURL: "/app/new",
|
||||||
},
|
},
|
||||||
Configs: nil,
|
Configs: nil,
|
||||||
UploadMaxChunkSize: 1e+8,
|
UploadMaxChunkSize: 1e+8,
|
||||||
@@ -1317,6 +1319,10 @@ func structMappings(cfg *Config) []shared.EnvBinding {
|
|||||||
EnvVars: []string{"STORAGE_FRONTEND_APP_PROVIDER_OPEN_URL"},
|
EnvVars: []string{"STORAGE_FRONTEND_APP_PROVIDER_OPEN_URL"},
|
||||||
Destination: &cfg.Reva.AppProvider.OpenURL,
|
Destination: &cfg.Reva.AppProvider.OpenURL,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
EnvVars: []string{"STORAGE_FRONTEND_APP_PROVIDER_NEW_URL"},
|
||||||
|
Destination: &cfg.Reva.AppProvider.NewURL,
|
||||||
|
},
|
||||||
|
|
||||||
// gateway
|
// gateway
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user