Skip to content

Instantly share code, notes, and snippets.

@tgerring
tgerring / MessageController.js
Created May 27, 2014 13:01
sails/express/node bridge to cpp-ethereum json rpc
/**
* MessageController
*
* @module :: Controller
* @description :: A set of functions called `actions`.
*
* Actions contain code telling Sails how to respond to a certain type of request.
* (i.e. do stuff, then send some JSON, show an HTML page, or redirect to another URL)
*