import router from '@adonisjs/core/services/router';
import server from '@adonisjs/core/services/server';
server.errorHandler(() => import('./modules/exceptions/http_exception_handler.js'));
server.use([
    () => import('@akago/adonisjs-drhttp/middleware'),
    () => import('@akago/adonisjs-log-http/middleware'),
    () => import('@adonisjs/cors/cors_middleware'),
    () => import('@adonisjs/static/static_middleware'),
    () => import('./modules/observability/opentelemetry_http_request_span_middleware.js'),
    () => import('./modules/container_bindings_middleware.js'),
    () => import('./modules/version_middleware.js'),
]);
router.use([
    () => import('@adonisjs/core/bodyparser_middleware'),
    () => import('@adonisjs/auth/initialize_auth_middleware'),
    () => import('./modules/json_middleware.js'),
    () => import('./modules/attachment/attachment_middleware.js'),
    () => import('./modules/crud/vine_validate_middleware.js'),
]);
export const middleware = router.named({
    auth: () => import('./modules/auth/auth_middleware.js'),
});
//# sourceMappingURL=kernel.js.map