Skip to content

Extracting data from your endpoints (modularisation) #42

Description

@jackbridger

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions