mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Unwrap log response (#1232)
Currently, the log response is not compatible with the swagger document. This change removes the log wrapper that the old version required.
This commit is contained in:
@@ -27,11 +27,10 @@ type callLog struct {
|
||||
func writeJSON(c *gin.Context, callID string, logReader io.Reader) {
|
||||
var b bytes.Buffer
|
||||
b.ReadFrom(logReader)
|
||||
c.JSON(http.StatusOK, callLogResponse{"Successfully loaded log",
|
||||
&callLog{
|
||||
c.JSON(http.StatusOK, &callLog{
|
||||
CallID: callID,
|
||||
Log: b.String(),
|
||||
}})
|
||||
})
|
||||
}
|
||||
|
||||
func (s *Server) handleCallLogGet(c *gin.Context) {
|
||||
|
||||
Reference in New Issue
Block a user