spry_static 0.1.0 copy "spry_static: ^0.1.0" to clipboard
spry_static: ^0.1.0 copied to clipboard

Static files handler support for Spry and ecosystem.

example/main.dart

import 'package:spry/spry.dart';
import 'package:spry_static/spry_static.dart';

void main() async {
  final Spry spry = Spry();
  final Static static = Static.directory(
    directory: 'static',
    defaultFiles: ['index.html'],
  );

  await spry.listen(static, port: 3000);
  print('Listening on port http://localhost:3000');
}
0
likes
140
pub points
0%
popularity

Publisher

verified publisherodroe.com

Static files handler support for Spry and ecosystem.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

mime, path, prexp, spry

More

Packages that depend on spry_static