aboutsummaryrefslogtreecommitdiff
path: root/routes
diff options
context:
space:
mode:
authorkanadeko <[email protected]>2017-01-17 15:55:27 -0300
committerkanadeko <[email protected]>2017-01-17 15:55:27 -0300
commit54e73085c68804e83b8a72ae1cb9a9982eaddb06 (patch)
treecd2c599f03c0a55cd04d367bdfff3044df50f5ba /routes
parenttoken handling and verification (diff)
downloadhost.fuwn.me-54e73085c68804e83b8a72ae1cb9a9982eaddb06.tar.xz
host.fuwn.me-54e73085c68804e83b8a72ae1cb9a9982eaddb06.zip
Removed extra routes, moved static to main file
Diffstat (limited to 'routes')
-rw-r--r--routes/routes.js36
1 files changed, 0 insertions, 36 deletions
diff --git a/routes/routes.js b/routes/routes.js
deleted file mode 100644
index c849335..0000000
--- a/routes/routes.js
+++ /dev/null
@@ -1,36 +0,0 @@
-const config = require('../config.js')
-const routes = require('express').Router()
-const path = require('path')
-
-let options = {
- root: 'pages/',
- dotfiles: 'deny',
- headers: {
- 'x-timestamp': Date.now(),
- 'x-sent': true
- }
-}
-
-routes.get('/', (req, res) => {
-
- res.sendFile('home.html', options, function (err) {
- if (err) {
- console.log(err)
- res.status(err.status).end()
- }
- })
-
-})
-
-routes.get('/panel', function (req, res, next) {
-
- res.sendFile('panel.html', options, function (err) {
- if (err) {
- console.log(err)
- res.status(err.status).end()
- }
- })
-
-})
-
-module.exports = routes \ No newline at end of file