Skip to content

Commit

Permalink
skipped healthcheck api (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbansla authored Jan 17, 2024
1 parent 0f52d2b commit 27a03a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/services/twilio-api/api-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ class TwilioApiBrowser {
const domains = JSON.parse(JSON.stringify(obj));

Object.values(domains).forEach((spec) => {
Object.values(spec.paths).forEach((path) => {
if (path === '/healthcheck') return;
Object.entries(spec.paths).forEach((entry) => {
const key = entry[0];
const path = entry[1];
if (key === '/healthcheck') return;
// Naive assumption: The Twilio APIs only have a single server.
path.server = path.servers[0].url;
delete path.servers;
Expand Down

0 comments on commit 27a03a0

Please sign in to comment.