Skip to content
Discussion options

You must be logged in to vote

Hey @robythomas 👋

I would recommend moving the logic that you would like to share out from the endpoint and then make both the endpoint and the relic route call that same place.

There is no need for this logic to be defined solely in an endpoint, and if it is shared between multiple places it your code it also makes it clear that the logic is not solely connected to an RPC call from the client.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SandPod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants