Skip to content

Commit

Permalink
Pequenas Correções.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chacal authored Nov 26, 2022
1 parent 2929e01 commit ac3020c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cadastrapage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Future<Lavanderia> createLavanderia(
String email,
) async {
final response = await http.post(
Uri.parse('https://easywash-backend.herokuapp.com/usuarios'),
Uri.parse('https://easywash-backend.herokuapp.com/lavanderias'),
headers: <String, String>{
'Content-Type': 'application/json; charset=UTF-8',
},
Expand All @@ -20,7 +20,7 @@ Future<Lavanderia> createLavanderia(
'cnpj': cnpj,
'email': email,
}));
if (response.statusCode == 201) {
if (response.statusCode == 200) {
return Lavanderia.fromJson(jsonDecode(response.body));
} else {
throw Exception('Falha ao cadastrar lavanderia');
Expand Down

0 comments on commit ac3020c

Please sign in to comment.