- fix auth

This commit is contained in:
dmit.b
2026-06-22 21:10:49 +03:00
parent a1b36577da
commit 5e9624bc8d
+1 -1
View File
@@ -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;
}