we can now check if a session is authorized
This commit is contained in:
parent
5e24fc29fb
commit
d63a452f75
4 changed files with 51 additions and 8 deletions
|
|
@ -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', {});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue