Skip to content

Instantly share code, notes, and snippets.

@fponticelli
Created February 15, 2015 16:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fponticelli/aa2fdaae4022d3455baf to your computer and use it in GitHub Desktop.
Save fponticelli/aa2fdaae4022d3455baf to your computer and use it in GitHub Desktop.
Minimalistic Webserver with NodeJS + Express + Haxe (with Macros) and an experimental library called restx
import restx.App;
class Main implements restx.IRoute {
@:path("/")
function index()
response.send("Hello World!");
public static function main() {
var app = new App(9998);
app.router.register(new Main());
app.start();
}
}
@fponticelli
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment