Skip to content

Commit

Permalink
Add spacing between routes
Browse files Browse the repository at this point in the history
  • Loading branch information
tombell committed Feb 7, 2012
1 parent 79614d0 commit a18a8ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/scripts/httpd.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
spawn = require('child_process').spawn

module.exports = (robot) ->

robot.router.get "/hubot/version", (req, res) ->
res.end robot.version

robot.router.post "/hubot/ping", (req, res) ->
res.end "PONG"

robot.router.get "/hubot/time", (req, res) ->
res.end "Server time is: #{new Date()}"

robot.router.get "/hubot/info", (req, res) ->
child = spawn('/bin/sh', ['-c', "echo I\\'m $LOGNAME@$(hostname):$(pwd) \\($(git rev-parse HEAD)\\)"])

Expand Down

0 comments on commit a18a8ee

Please sign in to comment.