This middleware will serve a UI written in Dart. Dart is a Google language that compiles to Javascript for older browsers that can not run Dart code natively. This middleware detects browsers that support Dart natively and serves Dart code to them and compiled Javascript otherwise.
builder.Register(ninject.Get<OwinFramework.Dart.DartMiddleware>()) .As("Dart") .ConfigureWith(config, "/owinFramework/middleware/dart");
The configuration below is the configuration you will get by default if you do not provide a configuration for this middleware.
{ "owinFramework": { "middleware": { "dart": { "documentationRootUrl": "/config/dart", "uiRootUrl": "/ui", "dartUiRootUrl": "/ui/web", "compiledUiRootUrl": "/ui/build/web", "defaultDocument": "index.html", "analyticsEnabled": true } } } }