-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1373 from Rugute/master
(feat) added amrs id for AMRS 3.X
- Loading branch information
Showing
3 changed files
with
11,531 additions
and
7,020 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const axios = require('axios'); | ||
try { | ||
const formData = { | ||
user: '1' | ||
}; | ||
const formBody = querystring.stringify(formData); | ||
request = await axios.post( | ||
'https://ngx.ampath.or.ke/amrs-id-generator/generateidentifier', | ||
formBody | ||
); | ||
} catch (error) { | ||
reply.response('Internal Server Error').code(500); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.