Skip to content

Commit

Permalink
Remove iis endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellrgn committed Mar 28, 2024
1 parent 4bff023 commit 88f1163
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions server/routers/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,20 +370,6 @@ export const shlApiRouter = new oak.Router()
accessLogSubscriptions.get(shl)!.splice(idx, 1);
}
});
})
.post('/iis', async(context) => {
const content = await context.request.body({ type: 'json' }).value;
const response = await fetch('http://35.160.125.146:8039/fhir/Patient/', {
method: 'POST',
headers: content.headers,
body: JSON.stringify(content)
});
if (response.ok) {
const body = await response.json();
context.response.body = body;
} else {
throw new Error('Unable to fetch IIS immunization data');
};
});

/*
Expand Down

0 comments on commit 88f1163

Please sign in to comment.