Require package file for server module. Still in dev.

This commit is contained in:
mmcw-dev 2018-03-15 15:32:26 -04:00
parent 0f74f6ac7c
commit d50ba3ac6e
1 changed files with 3 additions and 1 deletions

View File

@ -8,13 +8,15 @@ let cam
let proj let proj
let light let light
const PACKAGE = require('../../package.json')
class Server { class Server {
constructor (camera, projector, light) { constructor (camera, projector, light) {
restify = require('restify') restify = require('restify')
os = require('os') os = require('os')
app = restify.createServer({ app = restify.createServer({
name: 'mcopy-server', name: 'mcopy-server',
version: '2.0.0' version: PACKAGE.version
}) })
this.ip = this.getIp() this.ip = this.getIp()