Update main.js
This commit is contained in:
parent
98d96c7f89
commit
e842cfb63e
2
main.js
2
main.js
@ -116,7 +116,7 @@ function addRoutes(_router) {
|
|||||||
// test route to make sure everything is working (accessed at GET http://localhost:9090/api)
|
// test route to make sure everything is working (accessed at GET http://localhost:9090/api)
|
||||||
_router.get('/', function (req, res) {
|
_router.get('/', function (req, res) {
|
||||||
res.json({message: 'Welcome to our JSON REST api!'});
|
res.json({message: 'Welcome to our JSON REST api!'});
|
||||||
adapter.setState('testVariable', {val: true, ack: true, expire: 30});
|
adapter.setState('doors.1', {val: "123456", ack: true, expire: 30});
|
||||||
});
|
});
|
||||||
|
|
||||||
_router.get('/plain/', function(req, res) {
|
_router.get('/plain/', function(req, res) {
|
||||||
|
Loading…
Reference in New Issue
Block a user