jonataslaw / get_server

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

Get payload data from post request #87

Open lnmproj opened 1 year ago

lnmproj commented 1 year 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