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

Commit

Permalink
Merge pull request #96 from owncloud/ocis-hello-endpoints
Browse files Browse the repository at this point in the history
Add ocis-hello endpoints to builtin and example config
  • Loading branch information
kulmann authored Sep 2, 2020
2 parents 888962f + 4c84faa commit d62dfce
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions changelog/unreleased/hello-in-example-config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Enhancement: Add hello API and app endpoints to example config and builtin config

We added the ocis-hello API and app endpoints to both the example config and the builtin config.

https://github.com/owncloud/ocis-proxy/pull/96
8 changes: 8 additions & 0 deletions config/proxy-example.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@
{
"endpoint": "/settings.js",
"backend": "http://localhost:9190"
},
{
"endpoint": "/api/v0/greet",
"backend": "http://localhost:9105"
},
{
"endpoint": "/hello.js",
"backend": "http://localhost:9105"
}
]
},
Expand Down
8 changes: 8 additions & 0 deletions pkg/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,14 @@ func defaultPolicies() []config.Policy {
Endpoint: "/settings.js",
Backend: "http://localhost:9190",
},
{
Endpoint: "/api/v0/greet",
Backend: "http://localhost:9105",
},
{
Endpoint: "/hello.js",
Backend: "http://localhost:9105",
},
},
},
{
Expand Down

0 comments on commit d62dfce

Please sign in to comment.