Add it to your dependencies
dependencies:
route_provider: any
and install the package
$ pub get
import 'dart:io';
import 'package:route_provider/route_provider.dart';
main() {
HttpServer.bind(InternetAddress.LOOPBACK_IP_V4,8080).then((HttpServer server){
new RouteProvider(server, {
"defaultRoute":"/",
"staticContentRoot":"/docroot"
})
..route(
url: "/",
controller: new EmptyRouteController(),
responser: new FileResponse("docroot/index.html"),
auth: new StaticAuth(authed: true)
)
..route(
url: "/impress",
controller: new RestApiController(),
responser: new FileResponse("docroot/impress.html"),
auth: new StaticAuth(authed: true)
)
..start();
}).catchError((e) => print(e.toString()));
}
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
Robert Beyer 4sternrb@googlemail.com
MIT
Feature:
Feature:
Feature:
Test:
Feature:
Tests:
Bugfixes:
Add this to your package's pubspec.yaml file:
dependencies:
route_provider: "^0.3.1"
You can install packages from the command line:
with pub:
$ pub get
Alternatively, your editor might support pub get
.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:route_provider/route_provider.dart';
Version | Uploaded | Documentation | Archive |
---|---|---|---|
1.0.1 | Jan 14, 2018 |
|
|
1.0.0 | Jan 14, 2018 |
|
|
0.3.6 | May 13, 2016 |
|
|
0.3.5 | May 13, 2016 |
|
|
0.3.4 | Oct 21, 2015 |
|
|
0.3.3 | Oct 16, 2015 |
|
|
0.3.2 | Oct 16, 2015 |
|
|
0.3.1 | Oct 16, 2015 |
|
|
0.3.0 | Oct 16, 2015 |
|
|
0.2.0 | Aug 27, 2015 |
|
|
This package version is not analyzed, because it is more than two years old. Check the latest stable version for its analysis.