             res.end html
   ]
 
-  ['/r/:id/reply', (req, res) ->
-    if not req.current_user?
-      res.writeHead 401, status: 'login_error'
-      res.end 'not logged in'
-      return
+  [wrappers: [require_login],
+   '/r/:id/reply', (req, res) ->
     switch req.method
       when 'GET'
         parent_id = req.path_data.id

        res.redirect '/'
  ]

  ['/refer', (req, res) ->
    # refer someone to the network
    if not req.current_user?
      res.writeHead 401, status: 'login_error'
      res.end 'not logged in'
      return
    switch req.method
      when 'GET'
        render_layout "refer.jade", {}, req, res

            res.end html
  ]

  [wrappers: [require_login],
   '/r/:key/recv', (req, res) ->
    switch req.method
      when 'GET'
        key = req.path_data.key
