File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ func sendStartApp(port int) {
8787
8888func Start (params ... any ) {
8989 if len (params ) == 1 {
90- g , ok := params [1 ].(* gin.Engine )
90+ g , ok := params [0 ].(* gin.Engine )
9191 if ok {
9292 httpHandler = g .Handler ()
9393 }
@@ -100,12 +100,14 @@ func Start(params ...any) {
100100}
101101
102102func invokeApiHandler (c * gin.Context ) {
103+ println ("client: api request received" )
103104 input := c .Request
104105 output := runTask (nil , input )
105106 c .JSON (http .StatusOK , output )
106107}
107108
108109func invokeServiceHandler (c * gin.Context ) {
110+ println ("client: service request received" )
109111 var input TaskStartEvent
110112 if err := c .ShouldBindJSON (& input ); err != nil {
111113 c .JSON (http .StatusBadRequest , gin.H {"error" : "Invalid request" })
You can’t perform that action at this time.
0 commit comments