Skip to content

Commit

Permalink
[Keycloak] Redirect Institutions API on ProdBeta to Prod
Browse files Browse the repository at this point in the history
  • Loading branch information
meissadia committed Jan 24, 2023
1 parent 409c449 commit 332722e
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,19 @@

}

// ProdBeta will use Prod data,
// other systems will use data from their host.
function deriveInstitutionsApiHost() {
if (window.location.host == 'ffiec.beta.cfpb.gov')
return 'https://ffiec.cfpb.gov'

return ''
}

//AJAX call to get data, calls buildList with returned institutions
function getInstitutions(domain) {
$.ajax({
url: '/v2/public/institutions',
url: deriveInstitutionsApiHost() + '/v2/public/institutions',
statusCode: {
404: function() {
$('#institutions')
Expand Down

0 comments on commit 332722e

Please sign in to comment.