Added analytics and WebFinger support along with little things

This commit is contained in:
Alan Bridgeman 2024-03-21 12:03:30 -05:00
parent 73d92fe840
commit ba3978fffb
9 changed files with 2794 additions and 15 deletions

View file

@ -2,6 +2,8 @@ import path from 'path';
import express from 'express';
import mime from 'mime';
import { PointerServer } from '@BridgemanAccessible/ba-auth';
const app = express();
app.get('/', (req, res) => {
@ -76,6 +78,10 @@ app.use(express.static(path.join(__dirname, 'public'), {
}
}));
const oidcLink = PointerServer.createOIDCLink('account.bridgemanaccessible.ca');
const rfc8414Link = PointerServer.createRFC8414Link('account.bridgemanaccessible.ca');
PointerServer.setup(app, { links: [oidcLink, rfc8414Link] });
const port = process.env.PORT || 3000;
app.listen(port, () => {