Skip to content

Commit

Permalink
Fix urls #48
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-ignatov committed Jun 12, 2021
1 parent 0d8c1d1 commit c612346
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
5 changes: 1 addition & 4 deletions src/wellKnownOIDCConfiguration.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ const { getRequestBaseURL } = require("./lib");


module.exports = (req, res) => {
const prefix = `${getRequestBaseURL(req)}${
(req.originalUrl || req.url)
.replace(/\/\.well-known\/openid-configuration\/?$/, "")
}${config.authBaseUrl}`;
const prefix = `${getRequestBaseURL(req)}${req.baseUrl}/auth`;

const json = {

Expand Down
6 changes: 1 addition & 5 deletions src/wellKnownSmartConfiguration.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
const config = require("./config");
const { getRequestBaseURL } = require("./lib");


module.exports = (req, res) => {
const prefix = `${getRequestBaseURL(req)}${
(req.originalUrl || req.originalUrl)
.replace(/\/fhir\/\.well-known\/smart-configuration\/?$/, "")
}${config.authBaseUrl}`;
const prefix = `${getRequestBaseURL(req)}${req.baseUrl}/auth`;

const json = {

Expand Down

0 comments on commit c612346

Please sign in to comment.