routed 0.5.0 copy "routed: ^0.5.0" to clipboard
routed: ^0.5.0 copied to clipboard

Batteries-included Routed framework — core engine plus official feature packages.

routed #

Batteries-included Routed framework: core engine plus official feature packages.

import 'package:routed/routed.dart';

Future<void> main() async {
  // Provider registration is explicit so minimal compositions stay possible.
  registerRoutedProviders();
  final engine = await Engine.create();

  engine.get('/health', (ctx) => ctx.json({'ok': true}));
  await engine.serve(port: 8080);
}

Call registerRoutedProviders() once before Engine.create() for the batteries-included setup. For a smaller composition, pass an explicit provider list such as [...Engine.defaultProviders, RoutedCacheProvider()]. Provider-specific configuration is supplied through typed provider constructors before startup; there is no YAML or dotted-key configuration surface.

For the slim engine only, depend on routed_core.

0
likes
0
points
686
downloads

Publisher

unverified uploader

Weekly Downloads

Batteries-included Routed framework — core engine plus official feature packages.

Repository (GitHub)
View/report issues

Funding

Consider supporting this project:

www.buymeacoffee.com

License

unknown (license)

Dependencies

routed_auth, routed_cache, routed_core, routed_http, routed_logging, routed_observability, routed_openapi, routed_rate_limit, routed_security, routed_sessions, routed_storage, routed_validation, routed_views

More

Packages that depend on routed