         console.log 'saved' if argv.debug
       )
     console.log(action) if argv.debug
-    # TODO: test action.fork
     if action.fork
       getopts = {
         host: action.fork

    res.redirect('index')
  )

  app.get('/login/openid/complete',
    passport.authenticate('openid', { failureRedirect: 'notyourwiki'}),
    (req, res) ->
      res.redirect('index')
  )

  app.get('/notyourwiki', (req, res) ->
    res.send('This is not your wiki!', 403)
  )

  app.get('/', (req, res) ->
    res.redirect('index')
  )

  ##### Get routes
  # Routes have mostly been kept together by http verb, with the exception
  # of the openID related routes which are at the end together.

  app.get('/style.css', (req, res) ->
    res.sendfile("#{argv.r}/server/express/views/style.css")
  )

  # Main route for initial contact.  This is what allows us to
  # link into a specific set of pages, local and remote.
  # This can also be handled by the client, but it also sets up
  # the login status, and related footer html, which the client
  # relies on to know if it is logged in or not.
  app.get(///^((/[a-zA-Z0-9:.-]+/[a-z0-9-]+)+)$///, (req, res) ->
    #res.sendfile("#{argv.r}/server/sinatra/views/static.html")
    urlPages = (i for i in req.params[0].split('/') by 2)[1..]
