@@ -34,6 +34,7 @@ data CommonGeneratorOptions = CommonGeneratorOptions
3434 , successCallback :: String -- ^ name of the callback parameter when the request was successful
3535 , errorCallback :: String -- ^ name of the callback parameter when the request reported an error
3636 , moduleName :: String -- ^ namespace on which we define the js function (empty mean local var)
37+ , urlPrefix :: String -- ^ a prefix we should add to the Url in the JS codegen
3738 }
3839
3940-- | Default options.
@@ -45,6 +46,7 @@ data CommonGeneratorOptions = CommonGeneratorOptions
4546-- > , successCallback = "onSuccess"
4647-- > , errorCallback = "onError"
4748-- > , moduleName = ""
49+-- > , urlPrefix = ""
4850-- > }
4951-- @
5052defCommonGeneratorOptions :: CommonGeneratorOptions
@@ -55,6 +57,7 @@ defCommonGeneratorOptions = CommonGeneratorOptions
5557 , successCallback = "onSuccess"
5658 , errorCallback = "onError"
5759 , moduleName = ""
60+ , urlPrefix = ""
5861 }
5962
6063type Arg = String