we can now check if a session is authorized

This commit is contained in:
counterweight 2025-02-10 15:02:38 +01:00
parent 5e24fc29fb
commit d63a452f75
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
4 changed files with 51 additions and 8 deletions

View file

@ -1,6 +1,7 @@
const express = require('express');
const router = express.Router();
const authMiddleware = require('../middlewares/authMiddleware');
const appInviteService = require('../services/appInviteService')
router.get('/', (req, res) => {
@ -32,7 +33,7 @@ router.get('/invite/:inviteUuid', async (req, res) => {
}
});
router.get('/private', (req, res) => {
router.get('/private', authMiddleware, (req, res) => {
res.render('private', {});
});