keyoxide-web/index.js

28 lines
946 B
JavaScript
Raw Normal View History

2020-08-07 17:06:58 -06:00
const express = require('express');
const md = require('markdown-it')({typographer: true});
const fs = require('fs');
const app = express();
const port = 3000;
const env = {};
md.use(require("markdown-it-anchor"));
md.use(require("markdown-it-table-of-contents"), { "includeLevel": [2, 3], "listType": "ol" });
md.use(require('markdown-it-title'));
app.set('view engine', 'pug');
app.use('/static', express.static('static'));
app.use('/favicon.svg', express.static('favicon.svg'));
app.use('/', require('./routes/main'));
2020-08-08 01:41:42 -06:00
app.use('/dep', require('./routes/dep'));
2020-08-08 13:39:04 -06:00
app.use('/server', require('./routes/server'));
2020-08-07 17:06:58 -06:00
app.use('/encrypt', require('./routes/encrypt'));
app.use('/verify', require('./routes/verify'));
app.use('/proofs', require('./routes/proofs'));
app.use('/util', require('./routes/util'));
2020-08-07 17:06:58 -06:00
app.use('/', require('./routes/profile'));
app.listen(port, () => {
console.log(`Example app listening at http://localhost:${port}`);
});