jonataslaw / get_server

A backend server that makes it possible to program with Flutter syntax and reuse existing code
Apache License 2.0
477 stars 42 forks source link

Get payload data from post request #87

Open lnmproj opened 2 years ago

lnmproj commented 2 years ago

@jonataslaw Can you please give an example how to retrieve the post data request from context.payload().

frcc00 commented 1 year ago

this do my work context.request.payload().then((value) { 。。。 return context.sendJson({'result':'ok'}); }); return const WidgetEmpty();

jonataslaw commented 1 year ago

You can use the widget PayloadWidget too