     # Remove from proxy the route that matches given app.
     _removeRouteFromProxy: (app, result, callback) ->
         data =
-            route: "/apps/#{app.slug}/"
+            route: "/apps/#{app.slug}"
 
         @proxyClient.put "routes/del", data, (error, response, body) ->
             if error

    # Add a new route that matches given app to proxy.
    _addRouteToProxy: (app, result, callback) ->
        data =
            route: "/apps/#{app.slug}/"
            port: result.drone.port

        @proxyClient.post "routes/add", data, (error, response, body) ->

    # Send a uninstall request to haibu server ("clean" request).
    uninstallApp: (app, callback) ->

        console.log "Request haibu for cleaning #{app.name}..."
        @client.clean app.getHaibuDescriptor(), (err, result) =>
            if err
                console.log "Error cleaning app: #{app.name}"
