diff --git a/bin/routes/auth_routes.dart b/bin/routes/auth_routes.dart index 75bc217..6321af2 100644 --- a/bin/routes/auth_routes.dart +++ b/bin/routes/auth_routes.dart @@ -68,7 +68,7 @@ class AuthRoutes { await database.createUser(login, password); await database.createLog(login, 'User registration'); stopwatch.stop(); - final response = Response(201, body: jsonEncode({'message': 'User registered'}), headers: {'Content-Type': 'application/json'}); + final response = Response(200, body: jsonEncode({'message': 'User registered'}), headers: {'Content-Type': 'application/json'}); logRequest(method: 'POST', url: '/reg', status: 201, duration: stopwatch.elapsed, body: body, responseHeaders: response.headers); return response; }