Created
February 15, 2015 16:21
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Link to library: https://github.com/fponticelli/restx