Skip to content

Commit

Permalink
Refactored mediator endpoints and mediator-registration-info
Browse files Browse the repository at this point in the history
  • Loading branch information
cozej4 committed Oct 19, 2021
1 parent a7f274d commit f1a03f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class MediatorMain {
*/
private static RoutingTable buildRoutingTable() throws RoutingTable.RouteAlreadyMappedException {
RoutingTable routingTable = new RoutingTable();
routingTable.addRoute("/nhif", DefaultOrchestrator.class);
routingTable.addRoute("/send-practitioners-updates", DefaultOrchestrator.class);

return routingTable;
}
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/mediator-registration-info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@
"name": "NHIF Mediator HRHIS Route",
"host": "localhost",
"port": "3104",
"path": "/nhif",
"path": "/send-practitioners-updates",
"type": "http"
}
],
"defaultChannelConfig": [
{
"name": "NHIF Mediator HRHIS",
"urlPattern": "^/nhif$",
"urlPattern": "^/send-practitioners-updates$",
"type": "http",
"allow": ["hrhis-role"],
"routes": [
{
"name": "HRHIS - NHIF Route",
"host": "localhost",
"port": "3104",
"path": "/nhif",
"path": "/send-practitioners-updates",
"type": "http",
"primary": "true"
}
Expand Down

0 comments on commit f1a03f8

Please sign in to comment.