You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yes, this still repeats the line, but makes modifiying it easier.
I have to agree with @olegsobchuk , in a normal WebAPI GET and POST would do different things, and therefor have different handlers - but people do what they do
I'm trying to use gqlgen (https://github.com/99designs/gqlgen) with gin.
I'm using the code below but I have doubts.
As you can see I need to repeat the lines:
Is this correct?
Can I just have
GET
andPOST
both with the same handler function?(I opened 99designs/gqlgen#418 for this problem).
The text was updated successfully, but these errors were encountered: