- add log before

This commit is contained in:
dmit.b
2026-06-22 22:02:07 +03:00
parent 1e4200832f
commit 2a3a6edc33
+1
View File
@@ -60,6 +60,7 @@ class AuthRoutes {
Future<Response> _register(Request request) async { Future<Response> _register(Request request) async {
final stopwatch = Stopwatch()..start(); final stopwatch = Stopwatch()..start();
final body = await request.readAsString(); final body = await request.readAsString();
logRequest(method: 'POST', url: '/reg', status: 400, duration: stopwatch.elapsed, body: body);
final data = jsonDecode(body); final data = jsonDecode(body);
final login = data['login']; final login = data['login'];