If you look closely at the syntax, you’ll notice that define is inside a given resource, so it is aware of the module context it’s in. ![]()
If you want to do the interfaces on the resource, so the call would be MyApp.Tweets.Tweet.tweet, you can alternatively define them in a code_interface block inside the resource itself. It’s up to your preference on how you want to construct the interface.


















