mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Added missing comment to members .well-known mount
refs https://github.com/TryGhost/Team/issues/664 This was missed as part of PR review, as it is a non-standard mount location a comment should be included to help our future selves! PR: https://github.com/TryGhost/Ghost/pull/13163#discussion_r673066080
This commit is contained in:
parent
62d31bc65d
commit
fc754c980f
1 changed files with 2 additions and 0 deletions
|
@ -119,6 +119,8 @@ module.exports = function setupSiteApp(options = {}) {
|
|||
|
||||
// Global handling for member session, ensures a member is logged in to the frontend
|
||||
siteApp.use(membersService.middleware.loadMemberSession);
|
||||
|
||||
// /member/.well-known/* serves files (e.g. jwks.json) so it needs to be mounted before the prettyUrl mw to avoid trailing slashes
|
||||
siteApp.use('/members/.well-known', (req, res, next) => membersService.api.middleware.wellKnown(req, res, next));
|
||||
|
||||
// Theme middleware
|
||||
|
|
Loading…
Add table
Reference in a new issue