Comment out restify endpoints in server module
This commit is contained in:
parent
465993ce33
commit
407134af7e
|
@ -9,17 +9,20 @@ let proj
|
|||
let light
|
||||
|
||||
class Server {
|
||||
constructor (mcopy) {
|
||||
constructor (camera, projector, light) {
|
||||
restify = require('restify')
|
||||
os = require('os')
|
||||
app = express()
|
||||
app = restify.createServer({
|
||||
name: 'mcopy-server',
|
||||
version: '2.0.0'
|
||||
})
|
||||
|
||||
this.ip = this.getIp()
|
||||
|
||||
this.getIp()
|
||||
app.get('/', function (req, res) {
|
||||
/*app.get('/', function (req, res) {
|
||||
mcopy.mobile.log('Device connected');
|
||||
res.send(fs.readFileSync('tmpl/mcopy_index.html', 'utf8'));
|
||||
});
|
||||
})
|
||||
app.get('/js/mcopy_mobile.js', function (req, res) {
|
||||
res.send(fs.readFileSync('js/mcopy_mobile.js', 'utf8'));
|
||||
});
|
||||
|
@ -60,12 +63,13 @@ class Server {
|
|||
cam: mcopy.state.camera,
|
||||
proj: mcopy.state.projector
|
||||
});
|
||||
});
|
||||
var http = require('http');
|
||||
http.createServer(app).listen(mcopy.cfg.ext_port);
|
||||
});*/
|
||||
|
||||
|
||||
}
|
||||
end () {
|
||||
app.close()
|
||||
app = null
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue