move rx/tx to api

This commit is contained in:
Thomas Rudin 2020-01-19 13:46:49 +01:00
parent 6d40293fc4
commit 53d6549971
3 changed files with 7 additions and 7 deletions

View File

@ -1,8 +1,8 @@
const bodyParser = require('body-parser');
const jsonParser = bodyParser.json();
const app = require("./app");
const client_map = require("./client_map");
const app = require("../app");
const client_map = require("../client_map");
// mod -> web
app.post('/', jsonParser, function(req, res){

View File

@ -1,7 +1,7 @@
const app = require("./app");
const irc_client = require('./irc_client');
const cfg = require("./config");
const app = require("../app");
const irc_client = require('../irc_client');
const cfg = require("../config");
const EventEmitter = require("events");

View File

@ -1,6 +1,6 @@
const app = require("./app");
require("./rx.js");
require("./tx.js");
require("./api/rx.js");
require("./api/tx.js");
app.listen(8080, () => console.log('Listening on http://127.0.0.1:8080'));