make private page, but is still public

This commit is contained in:
counterweight 2025-02-10 12:51:54 +01:00
parent 7c2514a9a6
commit 5e24fc29fb
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
2 changed files with 18 additions and 0 deletions

View file

@ -32,5 +32,8 @@ router.get('/invite/:inviteUuid', async (req, res) => {
}
});
router.get('/private', (req, res) => {
res.render('private', {});
});
module.exports = router;

15
src/views/private.ejs Normal file
View file

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Private page</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>Private page</h1>
<p>If you are here, it's because your npub is white listed, and your session cookie is related to it.</p>
</body>
</html>