Skip to content

Commit

Permalink
Merge pull request #5 from Financial-Times/feature/schema-read-endpoint
Browse files Browse the repository at this point in the history
Route /schemas to the json-schema-reader service.
  • Loading branch information
Keith Hatton authored Jun 1, 2018
2 parents e22076a + b8c8e7c commit 5711ec2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
*.iml
*.iml
/.project
3 changes: 3 additions & 0 deletions default.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ sub vcl_recv {
set req.url = regsub(req.url, "notification\/brightcove\/metadata", "notify");
set req.backend_hint = dynBackend.backend("brightcove-metadata-preprocessor");
}
elif (req.url ~ "^\/schemas.*$") {
set req.backend_hint = dynBackend.backend("json-schema-reader");
}
elif (req.url ~ "^\/__[\w-]*\/.*$") {
# create a new backend dynamically to match the requested URL that will be looked up in the Kubernetes DNS.
# For example calling the URL /__content-ingester/xyz will forward the request to the service content-ingester with the url /xyz
Expand Down

0 comments on commit 5711ec2

Please sign in to comment.