Update README.md
updated the server.coffee reference code.
diff --git a/src/api/README.md b/src/api/README.md
index 1c7fc92..4a6f405 100644
--- a/src/api/README.md
+++ b/src/api/README.md
@@ -26,20 +26,24 @@
```coffeescript
yang = require('yang-js')
+argv = require('minimist')(process.argv.slice(2))
-require('yang-express').run {
-
- port: 5050
+app = require('yang-express') {
models: [
yang.require 'cord-core'
yang.require 'xos-core'
]
+ controllers: [
+ 'restjson'
+ 'socket-io'
+ ]
+ views: []
data: require '../../sample-data.json'
-
}
+app.run argv.port || 5050
```
-Yes, it's really that simple.
+Yep, it's really that simple.
## CORD API Reference