diff --git a/lib/api/api.dart b/lib/api/api.dart index a6f62b1..d7d94d8 100644 --- a/lib/api/api.dart +++ b/lib/api/api.dart @@ -13,15 +13,10 @@ Future getProduct(id) async { return res; } -Future registerPost({email, password, firstName, lastName}) async { +Future registerPost(data) async { Response req = await Dio().post( (host + '/register'), - data: { - 'email': email, - 'password': password, - 'first_name': firstName, - 'last_name': lastName - }, + data: data, options: Options( contentType: Headers.formUrlEncodedContentType, validateStatus: (status) {