16 lines
205 B
Go
16 lines
205 B
Go
package logic
|
|
|
|
import (
|
|
"fmt"
|
|
"io"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func Hook(ctx *gin.Context) {
|
|
fmt.Println("BODY:")
|
|
reqBody, _ := io.ReadAll(ctx.Request.Body)
|
|
fmt.Println(string(reqBody))
|
|
return
|
|
}
|