krico / jas

Janes Asmussen Szarmach
3 stars 1 forks source link

Angular endpoint client #733

Closed krico closed 9 years ago

krico commented 9 years ago

I used endpoints-angular-client-generator to generate client/jasify/providers/jasify.provider.js. This exposes and angular services called Jasify. I then replaced three methods to use it as a test

I want to go with these to prod so that we can check if generated code works outside of devserver.

The code goes from:

Old

            return Endpoint.jasify(function (jasify) {
                return jasify.auth.forgotPassword({
                    email: email,
                    url: siteUrl
                });
            });

New

            return Jasify.auth.forgotPassword({
                email: email,
                url: siteUrl
            });