forked from Mirrors/keyoxide-web
Improve routes
This commit is contained in:
parent
e89389e523
commit
aa9fa90229
6 changed files with 6 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
||||||
var router = require('express').Router();
|
const router = require('express').Router();
|
||||||
|
|
||||||
router.get('/openpgp.min.js', function(req, res) {
|
router.get('/openpgp.min.js', function(req, res) {
|
||||||
res.sendFile(`node_modules/openpgp/dist/openpgp.min.js`, { root: `${__dirname}/../` })
|
res.sendFile(`node_modules/openpgp/dist/openpgp.min.js`, { root: `${__dirname}/../` })
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
var router = require('express').Router();
|
const router = require('express').Router();
|
||||||
|
|
||||||
router.get('/', function(req, res) {
|
router.get('/', function(req, res) {
|
||||||
res.render('encrypt', { mode: "auto" })
|
res.render('encrypt', { mode: "auto" })
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
var router = require('express').Router();
|
const router = require('express').Router();
|
||||||
|
|
||||||
router.get('/wkd/:input', function(req, res) {
|
router.get('/wkd/:input', function(req, res) {
|
||||||
res.render('profile', { mode: "wkd", uid: req.params.input })
|
res.render('profile', { mode: "wkd", uid: req.params.input })
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
var router = require('express').Router();
|
const router = require('express').Router();
|
||||||
|
|
||||||
router.get('/', function(req, res) {
|
router.get('/', function(req, res) {
|
||||||
res.render('proofs', { mode: "auto" })
|
res.render('proofs', { mode: "auto" })
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
var router = require('express').Router();
|
const router = require('express').Router();
|
||||||
|
|
||||||
router.get('/profile-url', function(req, res) {
|
router.get('/profile-url', function(req, res) {
|
||||||
res.render('util/profile-url')
|
res.render('util/profile-url')
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
var router = require('express').Router();
|
const router = require('express').Router();
|
||||||
|
|
||||||
router.get('/', function(req, res) {
|
router.get('/', function(req, res) {
|
||||||
res.render('verify', { mode: "auto" })
|
res.render('verify', { mode: "auto" })
|
||||||
|
|
Loading…
Reference in a new issue