Skip to content

Commit

Permalink
Merge pull request #24 from Financial-Times/reroute-annotations-publish
Browse files Browse the repository at this point in the history
redirect publish endpoint to draft-annotations
  • Loading branch information
angelraynovft authored Sep 2, 2024
2 parents 13f2e1b + f21f518 commit b705e51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion default.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ sub vcl_recv {
set req.backend_hint = dynBackend.backend("cm-generic-concept-transformer");
}
elif (req.url ~ "^\/draft-annotations\/content\/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}\/annotations\/publish.*$") {
set req.backend_hint = dynBackend.backend("annotations-publisher");
set req.backend_hint = dynBackend.backend("draft-annotations-api");
}
elif (req.url ~ "^\/draft-annotations\/content.*$") {
set req.backend_hint = dynBackend.backend("draft-annotations-api");
Expand Down

0 comments on commit b705e51

Please sign in to comment.