diff --git a/index.js b/index.js index 29a00e6..f1c5f69 100644 --- a/index.js +++ b/index.js @@ -19,7 +19,10 @@ let app = restify.createServer({ function createServer () { app.get('/', index) - app.all('/frame', rFrame) + app.get('/frame', rFrame) + app.post('/frame', rFrame) + app.get('/sequence', () => {}) + app.post('/sequence', () => {}) app.get('/status', rStatus) app.listen(PORT, () => { console.log(`${APPNAME} listening on port ${PORT}!`) @@ -32,16 +35,11 @@ function rFrame (req, res, next) { } function rStatus (req, res, next) { - const obj = status() - res.send(obj) + const obj = intval.status() + res.send({}) return next() } -function status () { - const obj = {} - return obj -} - function index (req, res, next) { res.end(INDEX) return next() diff --git a/lib/intval/index.js b/lib/intval/index.js index 7f56a32..fc2d553 100644 --- a/lib/intval/index.js +++ b/lib/intval/index.js @@ -16,6 +16,9 @@ class Intval { } }) } + status () { + return {} + } } module.exports = new Intval() \ No newline at end of file