-
Notifications
You must be signed in to change notification settings - Fork 6
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
API routes setup #10
API routes setup #10
Conversation
Pls separate in separate prs. |
Pls separate in smaller prs. |
1 similar comment
Pls separate in smaller prs. |
ed098f3
to
41d3bae
Compare
return mr.Msg | ||
} | ||
|
||
func DecodeJSONBody(w http.ResponseWriter, r *http.Request, dst interface{}) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably write tests for this at some point
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created issue for this #18
API routes setup PR:
/api/v1/nodes
- register endpoint --> initial setup for Register endpoint #7