Permalink
Browse files

[examples] Added basic relational examples.

  • Loading branch information...
1 parent deeb468 commit 4ab4117bb10a9f1f06c38a5e845ec6929bdfd4b1 @Marak Marak committed Aug 25, 2012
Showing with 4 additions and 7 deletions.
  1. +0 −5 README.md
  2. +3 −1 examples/app.js
  3. +1 −1 examples/simple.js
View
@@ -132,11 +132,6 @@ There are several ways to provide security and authorization for accessing resou
**TL;DR; For security and authorization, you should use resourceful's `before` and `after` hooks.**
-
-## Relational Resources
-
-Relational resource reflection isn't yet supported in commandful. It will be soon.
-
# Tests
TODO
View
@@ -25,7 +25,9 @@ app.use(flatiron.plugins.cli);
app.use(flatiron.plugins.resourceful);
app.resources = {
- Creature: fixtures.Creature
+ Creature: fixtures.Creature,
+ Album: fixtures.Album,
+ Song: fixtures.Song
};
//
View
@@ -11,7 +11,7 @@ var fixtures = require('../test/fixtures'),
//
// Create a new command line on the defined resources
//
-var cli = commandful.createRouter([fixtures.Creature]);
+var cli = commandful.createRouter([fixtures.Creature, fixtures.Album, fixtures.Song]);
//
// Dispatch argv on all routes
//

0 comments on commit 4ab4117

Please sign in to comment.