diff --git a/servant-js/examples/www/axios/index.html b/servant-js/examples/www/axios/index.html index 25820678..2f3a0d7c 100644 --- a/servant-js/examples/www/axios/index.html +++ b/servant-js/examples/www/axios/index.html @@ -17,11 +17,11 @@ diff --git a/servant-js/src/Servant/JS/Axios.hs b/servant-js/src/Servant/JS/Axios.hs index 149e06b2..c955dd51 100644 --- a/servant-js/src/Servant/JS/Axios.hs +++ b/servant-js/src/Servant/JS/Axios.hs @@ -112,7 +112,7 @@ generateAxiosJSWith aopts opts req = "\n" <> where hasNoModule = null (moduleName opts) - fname = namespace <> (functionRenamer opts $ req ^. funcName) + fname = namespace <> (functionNameBuilder opts $ req ^. funcName) method = map toLower $ req ^. reqMethod url = if url' == "'" then "'/'" else url'