Skip to content

Commit

Permalink
some stuffs
Browse files Browse the repository at this point in the history
  • Loading branch information
aoqfonseca committed Nov 16, 2012
1 parent 54b9b24 commit 24c1b5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
language: node_js
node_js:
- 0.6
- 0.8
- 0.8
8 changes: 2 additions & 6 deletions app.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,15 @@ app.configure 'prod', ->
#middleware for auth
has_permission = (req,res, next) ->
next()
# if res.session.user? and res.session.user=='chefe'
# next()
# else
# res.redirect('/error_invalid.html')

##Routes
app.get "/speaker", has_permission, (req, res) ->
res.render 'speaker'

##Websockets parts
sockets.on 'connection', (client) ->
client.on 'paginate', (pag) ->
sockets.broadcast.emit('changePage', pag)
client.on 'next', (pag) ->
sockets.broadcast.emit('next', pag)


## start server to listening */
Expand Down

0 comments on commit 24c1b5c

Please sign in to comment.