@@ -34,6 +34,7 @@ data CommonGeneratorOptions = CommonGeneratorOptions
34 , successCallback :: String -- ^ name of the callback parameter when the request was successful
34 , successCallback :: String -- ^ name of the callback parameter when the request was successful
35 , errorCallback :: String -- ^ name of the callback parameter when the request reported an error
35 , errorCallback :: String -- ^ name of the callback parameter when the request reported an error
36 , moduleName :: String -- ^ namespace on which we define the js function (empty mean local var)
36 , 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
39-- | Default options.
40-- | Default options.
@@ -45,6 +46,7 @@ data CommonGeneratorOptions = CommonGeneratorOptions
45-- > , successCallback = "onSuccess"
46-- > , successCallback = "onSuccess"
46-- > , errorCallback = "onError"
47-- > , errorCallback = "onError"
47-- > , moduleName = ""
48-- > , moduleName = ""
50defCommonGeneratorOptions :: CommonGeneratorOptions
52defCommonGeneratorOptions :: CommonGeneratorOptions
@@ -55,6 +57,7 @@ defCommonGeneratorOptions = CommonGeneratorOptions
55 , successCallback = "onSuccess"
57 , successCallback = "onSuccess"
56 , errorCallback = "onError"
58 , errorCallback = "onError"
57 , moduleName = ""
59 , moduleName = ""
60type Arg = String
63type Arg = String