The Protevus Platform: Unified Full-Stack Development
https://protevus.com
.idea | ||
lib | ||
test | ||
.gitignore | ||
.travis.yml | ||
LICENSE | ||
pubspec.yaml | ||
README.md |
angel_proxy
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());
}