diff --git a/index.js b/index.js deleted file mode 100644 index d4e654c..0000000 --- a/index.js +++ /dev/null @@ -1 +0,0 @@ -require('./src/webserver')() \ No newline at end of file diff --git a/package.json b/package.json index 00918e9..f387c55 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@thundernetworkrad/mit.db", - "version": "2023.01.11", + "version": "2023.01.26", "description": "An online server for quickmap.db", "main": "index.js", "scripts": { diff --git a/src/webserver.js b/src/webserver.js deleted file mode 100644 index 2762b8d..0000000 --- a/src/webserver.js +++ /dev/null @@ -1,16 +0,0 @@ -module.exports = (port) => { - var defaultConfig = require('../config.js'); - var cm = require('../cm') - - var openOn = port || defaultConfig.port || 4000; - - const express = require('express') - const app = express() - - app.get('/:command/:makewhat/:id/:token', function (req, res) { - if (eval('cm.'+req.params.id) != req.params.token) return res.send('{ "Error"= "Invalid token or id" }') - else console.log(req.params.command, req.params.makewhat, req.body) - }) - - app.listen(openOn) -} \ No newline at end of file