Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extracting data from your endpoints (modularisation) #42

Open
jackbridger opened this issue Dec 13, 2019 · 0 comments
Open

Extracting data from your endpoints (modularisation) #42

jackbridger opened this issue Dec 13, 2019 · 0 comments

Comments

@jackbridger
Copy link

In your handlers in general, modularisation will make it much clearer what's going on and you can test things in an isolated way.

For example you extract username and password from your endpoint and you could modularise it

Screenshot 2019-12-13 at 10 47 34

You could create an endpoint parser in your helper and import it. Then you can call it in your get user data handler

I didn't test the above code btw but should work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant