Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Method dependent Phobos server side script (See related posts)

Method dependent Phobos server side script

// method-dependent script

var message;

library.httpserver.onMethod({
    GET: function() { message = "accessed via GET"; },
    POST: function() { message = "received POST"; },
    any: function() { message = "got something else"; },
});

model = { text: message };

You need to create an account or log in to post comments to this site.


Click here to browse all 4834 code snippets

Related Posts