 app.get '/on/18', (req, res) ->
   io[18].set()
   res.send('on')
-
 
 app.get '/off/18', (req, res) ->
   io[18].reset()

express = require 'express'
gpio = require 'gpio'
app = express()

io = {
  18: gpio.export 18

io[22].on 'change', (val) ->
  io[23].set(val)

app.listen app.get('port'), ->
  console.log "Listening on port #{app.get('port')}"
