The Protevus Platform: Unified Full-Stack Development https://protevus.com
Find a file
2017-03-01 22:38:30 -05:00
.idea +2 2016-11-23 17:33:46 -05:00
lib 1.0.0 2017-03-01 22:37:37 -05:00
test Fixed! 2017-01-11 19:19:15 -05:00
.gitignore Works 2016-11-23 17:03:06 -05:00
.travis.yml Works 2016-11-23 17:03:06 -05:00
LICENSE Initial commit 2016-11-09 23:28:11 -05:00
pubspec.yaml 1.0.0 2017-03-01 22:38:30 -05:00
README.md README 2017-03-01 22:37:51 -05:00

angel_proxy

version 1.0.0 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());
}