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

Add ocis-hello endpoints to builtin and example config #96

Merged
merged 3 commits into from
Sep 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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