mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
14 lines
353 B
JavaScript
14 lines
353 B
JavaScript
const http = require('http');
|
|
const express = require('express');
|
|
const morgan = require('morgan');
|
|
const config = require('./config');
|
|
|
|
const app = express();
|
|
app.use(morgan('dev'));
|
|
app.use(express.json());
|
|
app.use(express.static(config.staticDir, { index: false }));
|
|
|
|
const httpServer = http.createServer(app);
|
|
|
|
module.exports = { app, httpServer };
|