Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- // compressed
- Server=require("ringo/httpserver").Server;a=require("stick").Application();a.configure("route");a.get("/",function(){return{status:200,headers:{},body:["hello world"]}});(new Server({app:a})).start();
- */
- // less compressed
- var Server = require("ringo/httpserver").Server;
- var app = require('stick').Application();
- app.configure("route");
- app.get('/', function() {
- return {
- status: 200,
- headers: {},
- body: ['hello world']};
- }
- );
- server = new Server({port: '8080', app: app});
- server.start();
Add Comment
Please, Sign In to add comment