platform/README.md
thosakwe fc05e85bfc +3
2016-11-27 19:53:27 -05:00

674 B

angel_proxy

version 1.0.0-dev+3 build status

Angel middleware to forward requests to another server (i.e. pub serve). Based on this repo.

import 'package:angel_proxy/angel_proxy.dart';

main() async {
  // ...
  
  // Forward requests instead of serving statically
  await app.configure(new ProxyLayer('localhost', 3000));
  
  // Or, use one for pub serve.
  //
  // This automatically deactivates itself if the app is
  // in production.
  await app.configure(new PubServeLayer());
}