diff --git a/package.json b/package.json index 840a405..870ce22 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ba-website", - "version": "1.0.20", + "version": "1.0.21", "description": "The Bridgeman Accessible main website", "main": "server.js", "scripts": { diff --git a/src/server.ts b/src/server.ts index b9f90b0..03b7ba7 100644 --- a/src/server.ts +++ b/src/server.ts @@ -10,7 +10,7 @@ const domain = process.env.DOMAIN || 'localhost'; * * @param app The Express app that gets created/started. */ -function onStart(app: Application) { +function onStart(app: App) { // Currently within the Server class implementation, // which is then implemented by the accounts dashboard, // only the RFC8414 path/callback is setup by default @@ -18,7 +18,7 @@ function onStart(app: Application) { // this should be easy enough to change but don't want to fiddle with it right now //const oidcLink = PointerServer.createOIDCLink('account.bridgemanaccessible.ca'); const rfc8414Link = PointerServer.createRFC8414Link('account.bridgemanaccessible.ca'); - PointerServer.setup(app, { links: [/*oidcLink, */rfc8414Link] }); + PointerServer.setup(app.getExpressApp(), { links: [/*oidcLink, */rfc8414Link] }); } async function main() {