|
@@ -1,6 +1,5 @@
|
|
|
const express = require('express')
|
|
|
const router = express.Router()
|
|
|
-
|
|
|
const { fromTor, fromVpn, checkCountry } = require('./utils')
|
|
|
|
|
|
// magic
|
|
@@ -18,6 +17,10 @@ router.get('/metadata', render('metadata'))
|
|
|
// level IV (mail -> vpn)
|
|
|
router.get('/mail', render('mail'))
|
|
|
|
|
|
+router.get('/password', render('password'))
|
|
|
+
|
|
|
+router.get('/fingerprint', render('fingerprint'))
|
|
|
+
|
|
|
// level V (vpn -> read mail)
|
|
|
router.get('/vpn', fromTor, fromVpn, checkCountry, (req, res, next) => {
|
|
|
if (!req.fromTor && req.fromVpn) {
|
|
@@ -27,6 +30,5 @@ router.get('/vpn', fromTor, fromVpn, checkCountry, (req, res, next) => {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-router.get('/password', render('password'))
|
|
|
|
|
|
module.exports = router
|