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
### Keybase proof | |
I hereby claim: | |
* I am millross on github. | |
* I am jezprime (https://keybase.io/jezprime) on keybase. | |
* I have a public key ASD-LhyoAXE3N5_5gobBGLpIstmlepHnyt1m022FByoYHgo | |
To claim this, I am signing this object: |
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
// Must be defined in each controller | |
exports.install = function(framework, name) { | |
// this place is for definition routes (HTTP, CUSTOM STATIC FILES, WEBSOCKETS) | |
// http://docs.totaljs.com/Framework/#framework.route | |
framework.route('/api/', api_root); | |
framework.route('/api/book/', new_book, ["json", "post"]); | |
} |
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 org.vertx.groovy.testtools.VertxTests | |
import rx.util.functions.Action0 | |
import static org.vertx.testtools.VertxAssert.testComplete | |
// And import static the VertxTests script | |
// The test methods must being with "test" | |
def testTrivialRxJava() { | |
rx.Observable.from("one", "two", "three") | |
.take(2) |