   constructor: ->
     @inPorts =
       server: new noflo.Port 'number'
-      verb: new noflo.Port 'string'
+      method: new noflo.Port 'string'
       path: new noflo.Port 'string'
     @outPorts =
       request: new noflo.Port 'object'

      @removeRoute()
      @path = path
      @createRoute()
    @inPorts.verb.on 'data', (verb) =>
      @removeRoute()
      @verb = verb
      @createRoute()

  removeRoute: ->
    return unless @server and @verb and @path
    routes = @server.routes[@verb]
    for route, i in routes
      if route.path == @path and route.method == @verb
        routes.slice(i, -1)

  shutdown: ->
    @removeRoute()
