Open bluepeter opened 10 years ago
@bluepeter the way I've been doing it is is defining my deeper uri's like restify.any ('/api/user/:id/tweets', c.api.user.tweets, ['list']);
and on the client with Restangular Restangular .one('user', $stateParams.id).all('tweets').getList();
For example:
GET /api/user/:id
returns data about the user, andLIST /api/user/:id/tweets
returns that user's tweets.