diff --git a/.gitignore b/.gitignore index eb15708..430862c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ dist/ dist-newstyle/ .stack-work/ +examples/**/*/api.js +examples/**/*/api.service.js diff --git a/examples/counter.hs b/examples/counter.hs index 4040b05..039c6e3 100644 --- a/examples/counter.hs +++ b/examples/counter.hs @@ -95,6 +95,8 @@ main = do writeJSForAPI testApi (axios defAxiosOptions) (www > "axios" > "api.js") + writeJSForAPI testApi (fetch defFetchOptions) (www > "fetch" > "api.js") + writeServiceJS (www > "angular" > "api.service.js") -- setup a shared counter diff --git a/examples/www/fetch/index.html b/examples/www/fetch/index.html new file mode 100644 index 0000000..67cb72c --- /dev/null +++ b/examples/www/fetch/index.html @@ -0,0 +1,39 @@ + +
+