make private page, but is still public
This commit is contained in:
parent
7c2514a9a6
commit
5e24fc29fb
2 changed files with 18 additions and 0 deletions
|
|
@ -32,5 +32,8 @@ router.get('/invite/:inviteUuid', async (req, res) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
router.get('/private', (req, res) => {
|
||||||
|
res.render('private', {});
|
||||||
|
});
|
||||||
|
|
||||||
module.exports = router;
|
module.exports = router;
|
||||||
|
|
|
||||||
15
src/views/private.ejs
Normal file
15
src/views/private.ejs
Normal 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>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue