 
   request: (opts) ->
     @requestClient _.extend {}, opts, {
-      url: "#{@opts.server}#{opts.url}"
+      url: url.resolve @opts.server, opts.url
     }
 
   requestDefaults: (opts) ->

      url:               "/api/v1/applet-api/#{appletId}/users/#{ctx.userId}"
      qs:
        accounts:        true
      headers:
        'applet-token':  appletToken
    }
    _.extend ctx, user: user, userApplet: userApplet, applet: applet


KoaRouter           = require 'koa-router'
bodyParser          = require 'koa-bodyparser'
request             = require 'request-promise'
url                 = require 'url'

# Base Nodeswork class.
#
