From e1b9b6f5b80530620b7df2a0bebfd8941eadad3b Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Tue, 5 Apr 2022 17:47:36 +0200 Subject: Add Shibboleth login support Signed-off-by: Matt Strapp --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/index.ts') diff --git a/src/index.ts b/src/index.ts index c4b346a..88c6f58 100644 --- a/src/index.ts +++ b/src/index.ts @@ -43,10 +43,10 @@ app.use('/public', express.static(path.join(__dirname, 'public'))); // Set stati /* ROUTING */ -app.get('/', csrf, (req: Request, res: Response) => { +app.get('/pendulum', csrf, saml, (req: Request, res: Response) => { res.render('index', { csrfToken: req.csrfToken() }); }); -app.get('/about', csrf, saml, (req: Request, res: Response) => { +app.get('/', csrf, (req: Request, res: Response) => { res.render('about'); }); app.all('/login', csrf, (req: Request, res: Response) => { -- cgit v1.2.3