- fix auth

This commit is contained in:
dmit.b
2026-06-22 21:14:47 +03:00
parent 5e9624bc8d
commit 1e4200832f
+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(200, body: jsonEncode({'message': 'User registered'}), headers: {'Content-Type': 'application/json'});
final response = Response(201, 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;
}