Skip to content

Commit c5af9e3

Browse files
committed
refactor: Remove authentication middleware usage
- Temporarily disable auth - Simplify request handling
1 parent a40cb52 commit c5af9e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routes/_middleware.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'dart:convert';
66
import 'dart:io';
77

88
import 'package:dart_frog/dart_frog.dart';
9-
import 'package:ht_api/src/middlewares/authentication_middleware.dart';
9+
// import 'package:ht_api/src/middlewares/authentication_middleware.dart';
1010
import 'package:ht_api/src/middlewares/error_handler.dart';
1111
import 'package:ht_api/src/registry/model_registry.dart';
1212
import 'package:ht_api/src/services/auth_service.dart';
@@ -240,7 +240,7 @@ Handler middleware(Handler handler) {
240240
// --- Core Middleware ---
241241
.use(requestLogger()) // Basic request logging
242242
// Apply authenticationProvider to make User? available downstream
243-
.use(authenticationProvider())
243+
// .use(authenticationProvider())
244244
// Error handler should generally be last to catch all upstream errors
245245
.use(errorHandler());
246246
}

0 commit comments

Comments
 (0)