 app.get '/api/mendeley/papers', api.mendeley.papers
 
 # redirect all others to the index (HTML5 history)
-app.get '*', routes.index
+#app.get '*', routes.index
 
 # Start server
 port = process.argv[2] or process.env.PORT or 3000;

app.configure 'production', ->
  app.use express.errorHandler()

app.configure 'staging', ->
  privateAuth = (req, res, next) ->
    if req.cookies.showmepreview
      next()

        res.cookie 'showmepreview', '1', maxAge: 3600000
        next()
      else
        res.redirect 'http://cobig2.fc.ul.pt'
  app.use privateAuth

# Routes
