You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to make form action work, i was trying to to make it work thought the hook.server
importtype{Handle}from"@sveltejs/kit"exportconsthandle=(async({ event, resolve })=>{if(event.request.method==="POST"){const_url=event.request.url.split("?/")consturl=_url[0]constaction=_url[1]event.request=newRequest(url,event.request)// Send it to the python server....// find a way to resolve and return the data, from the python server...}constresp=awaitresolve(event)returnresp})satisfiesHandle
currently with this code we can intercept the post request from the form and send it to the python server , the problem is the how to return the correct response.
I was thinking we can talk about ...how to handle the form actions with python
The text was updated successfully, but these errors were encountered:
I was trying to make form action work, i was trying to to make it work thought the
hook.server
currently with this code we can intercept the post request from the form and send it to the python server , the problem is the how to return the correct response.
I was thinking we can talk about ...how to handle the form actions with python
The text was updated successfully, but these errors were encountered: