From 1e4200832f16fc33d5baca1d0b1adf959fc43b6a Mon Sep 17 00:00:00 2001 From: "dmit.b" Date: Mon, 22 Jun 2026 21:14:47 +0300 Subject: [PATCH] - fix auth --- bin/routes/auth_routes.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/routes/auth_routes.dart b/bin/routes/auth_routes.dart index 6321af2..75bc217 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(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; }