Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Commit

Permalink
Add Accounts UI routes
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
  • Loading branch information
butonic committed Jul 10, 2020
1 parent 18fd953 commit 2ae41da
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions changelog/unreleased/add-accounts-ui-routes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Enhancement: Add Accounts UI routes

The accounts service has a ui that requires routing
- `/api/v0/accounts` and
- `/accounts.js`

to http://localhost:9181

https://github.com/owncloud/ocis-proxy/pull/65
10 changes: 10 additions & 0 deletions pkg/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,16 @@ func defaultPolicies() []config.Policy {
Endpoint: "/data",
Backend: "http://localhost:9140",
},
// if we were using the go micro api gateway we could look up the endpoint in the registry dynamically
{
Endpoint: "/api/v0/accounts",
Backend: "http://localhost:9181",
},
// TODO the lookup needs a better mechanism
{
Endpoint: "/accounts.js",
Backend: "http://localhost:9181",
},
},
},
{
Expand Down

0 comments on commit 2ae41da

Please sign in to comment.