Improve routes

This commit is contained in:
Yarmo Mackenbach 2020-08-08 13:40:11 +02:00
parent e89389e523
commit aa9fa90229
6 changed files with 6 additions and 6 deletions

View file

@ -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}/../` })

View file

@ -1,4 +1,4 @@
var router = require('express').Router();
const router = require('express').Router();
router.get('/', function(req, res) {
res.render('encrypt', { mode: "auto" })

View file

@ -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 })

View file

@ -1,4 +1,4 @@
var router = require('express').Router();
const router = require('express').Router();
router.get('/', function(req, res) {
res.render('proofs', { mode: "auto" })

View file

@ -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')

View file

@ -1,4 +1,4 @@
var router = require('express').Router();
const router = require('express').Router();
router.get('/', function(req, res) {
res.render('verify', { mode: "auto" })