-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
Update cli endpoint #1073
Update cli endpoint #1073
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -302,5 +307,5 @@ func (h Handler) HTTPCheckerHandler(c *gin.Context) { | |||
|
|||
} | |||
|
|||
c.JSON(http.StatusOK, gin.H{"message": "ok"}) |
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.
@mxkaske we used to return something dummy
I'm returning the result of the ping instead
This is useful to get instant result in the /run endoint
@@ -196,7 +207,7 @@ func (h Handler) TCPHandler(c *gin.Context) { | |||
} | |||
} | |||
|
|||
c.JSON(http.StatusOK, gin.H{"message": "ok"}) | |||
c.JSON(http.StatusOK, response) |
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.
Same as above
Instead of dummy data return the actual result useful for the run endpoint
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.
This is mostly copy pasta from trigger/post might going to refactor it after 🤣
Type of change
Description
A picture tells a thousand words (if any)
Before this PR
{Please add a screenshot here}
After this PR
{Please add a screenshot here}
Related Issue (optional)