From aa9fa90229eac71cc32a661ec5a4b46d7fc00838 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sat, 8 Aug 2020 13:40:11 +0200 Subject: [PATCH] Improve routes --- routes/dep.js | 2 +- routes/encrypt.js | 2 +- routes/profile.js | 2 +- routes/proofs.js | 2 +- routes/util.js | 2 +- routes/verify.js | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/routes/dep.js b/routes/dep.js index 34d5134..2331708 100644 --- a/routes/dep.js +++ b/routes/dep.js @@ -1,4 +1,4 @@ -var router = require('express').Router(); +const router = require('express').Router(); router.get('/openpgp.min.js', function(req, res) { res.sendFile(`node_modules/openpgp/dist/openpgp.min.js`, { root: `${__dirname}/../` }) diff --git a/routes/encrypt.js b/routes/encrypt.js index e69ee10..c67bb86 100644 --- a/routes/encrypt.js +++ b/routes/encrypt.js @@ -1,4 +1,4 @@ -var router = require('express').Router(); +const router = require('express').Router(); router.get('/', function(req, res) { res.render('encrypt', { mode: "auto" }) diff --git a/routes/profile.js b/routes/profile.js index 537f5c8..978a59d 100644 --- a/routes/profile.js +++ b/routes/profile.js @@ -1,4 +1,4 @@ -var router = require('express').Router(); +const router = require('express').Router(); router.get('/wkd/:input', function(req, res) { res.render('profile', { mode: "wkd", uid: req.params.input }) diff --git a/routes/proofs.js b/routes/proofs.js index 1d06861..1e1a509 100644 --- a/routes/proofs.js +++ b/routes/proofs.js @@ -1,4 +1,4 @@ -var router = require('express').Router(); +const router = require('express').Router(); router.get('/', function(req, res) { res.render('proofs', { mode: "auto" }) diff --git a/routes/util.js b/routes/util.js index e11ecd3..57d13f2 100644 --- a/routes/util.js +++ b/routes/util.js @@ -1,4 +1,4 @@ -var router = require('express').Router(); +const router = require('express').Router(); router.get('/profile-url', function(req, res) { res.render('util/profile-url') diff --git a/routes/verify.js b/routes/verify.js index d2437c4..d5d4654 100644 --- a/routes/verify.js +++ b/routes/verify.js @@ -1,4 +1,4 @@ -var router = require('express').Router(); +const router = require('express').Router(); router.get('/', function(req, res) { res.render('verify', { mode: "auto" })