jsForAPI now needs to take into account Canonicalize
This commit is contained in:
parent
d90b59e902
commit
95a120f110
1 changed files with 1 additions and 1 deletions
|
@ -112,6 +112,6 @@ instance GenerateCode rest => GenerateCode (AjaxReq :<|> rest) where
|
||||||
-- | Directly generate all the javascript functions for your API
|
-- | Directly generate all the javascript functions for your API
|
||||||
-- from a 'Proxy' for your API type. You can then write it to
|
-- from a 'Proxy' for your API type. You can then write it to
|
||||||
-- a file or integrate it in a page, for example.
|
-- a file or integrate it in a page, for example.
|
||||||
jsForAPI :: (HasJQ api, GenerateCode (JQ api))
|
jsForAPI :: (HasJQ (Canonicalize api), GenerateCode (JQ api))
|
||||||
=> Proxy api -> String
|
=> Proxy api -> String
|
||||||
jsForAPI p = jsFor (jquery p)
|
jsForAPI p = jsFor (jquery p)
|
||||||
|
|
Loading…
Reference in a new issue