diff options
author | Matt Strapp <matt@mattstrapp.net> | 2022-04-05 17:47:36 +0200 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2022-04-05 17:48:13 +0200 |
commit | e1b9b6f5b80530620b7df2a0bebfd8941eadad3b (patch) | |
tree | 1fd746f187a3cfb35f032f1bc47997add2e57b63 /src/index.ts | |
parent | Bump prettier from 2.6.1 to 2.6.2 (#38) (diff) | |
download | ee4511w-web-e1b9b6f5b80530620b7df2a0bebfd8941eadad3b.tar ee4511w-web-e1b9b6f5b80530620b7df2a0bebfd8941eadad3b.tar.gz ee4511w-web-e1b9b6f5b80530620b7df2a0bebfd8941eadad3b.tar.bz2 ee4511w-web-e1b9b6f5b80530620b7df2a0bebfd8941eadad3b.tar.lz ee4511w-web-e1b9b6f5b80530620b7df2a0bebfd8941eadad3b.tar.xz ee4511w-web-e1b9b6f5b80530620b7df2a0bebfd8941eadad3b.tar.zst ee4511w-web-e1b9b6f5b80530620b7df2a0bebfd8941eadad3b.zip |
Add Shibboleth login support
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'src/index.ts')
-rw-r--r-- | src/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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) => { |