add settings and ocs group routes

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2020-07-29 14:55:26 +02:00
parent 38d4dcf093
commit 2e49febb6c
2 changed files with 18 additions and 5 deletions

View File

@@ -0,0 +1,5 @@
Change: add settings and ocs group routes
Route settings requests and ocs group related requests to new services
https://github.com/owncloud/ocis-proxy/pull/81

View File

@@ -250,13 +250,13 @@ func defaultPolicies() []config.Policy {
Backend: "http://localhost:9130",
},
{
Endpoint: "/ocs/",
Backend: "http://localhost:9140",
Type: config.RegexRoute,
Endpoint: "/ocs/v[12].php/cloud/user", // we have `user` and `users` in ocis-ocs
Backend: "http://localhost:9110",
},
{
Type: config.RegexRoute,
Endpoint: "/ocs/v[12].php/cloud/user",// we have `user` and `users` in ocis-ocs
Backend: "http://localhost:9110",
Endpoint: "/ocs/",
Backend: "http://localhost:9140",
},
{
Type: config.QueryRoute,
@@ -297,6 +297,14 @@ func defaultPolicies() []config.Policy {
Endpoint: "/accounts.js",
Backend: "http://localhost:9181",
},
{
Endpoint: "/api/v0/settings",
Backend: "http://localhost:9190",
},
{
Endpoint: "/settings.js",
Backend: "http://localhost:9190",
},
},
},
{