Switched echo to return json (#874)

This commit is contained in:
RoyUP9
2022-03-03 12:23:09 +02:00
committed by GitHub
parent de769131de
commit 8217ac3ed0

View File

@@ -86,7 +86,7 @@ func hostApi(socketHarOutputChannel chan<- *tapApi.OutputChannelItem) *gin.Engin
app := gin.Default()
app.GET("/echo", func(c *gin.Context) {
c.String(http.StatusOK, "Here is Mizu agent")
c.JSON(http.StatusOK, "Here is Mizu agent")
})
eventHandlers := api.RoutesEventHandlers{