diff options
| author | mo khan <mo@mokhan.ca> | 2014-07-08 22:30:18 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-07-08 22:30:18 -0600 |
| commit | 7757b66ae7fc6fa13fc5b59bc19495107d8eec45 (patch) | |
| tree | f19a6724f4448d907726866aa682d7322b6cbf24 /app/controllers/api/v1/tutorials_controller.rb | |
| parent | 21f849302106a09b5c5f368f652bb1fd9a98174e (diff) | |
add a my#tutorials tab.
Diffstat (limited to 'app/controllers/api/v1/tutorials_controller.rb')
| -rw-r--r-- | app/controllers/api/v1/tutorials_controller.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/controllers/api/v1/tutorials_controller.rb b/app/controllers/api/v1/tutorials_controller.rb new file mode 100644 index 00000000..8728a857 --- /dev/null +++ b/app/controllers/api/v1/tutorials_controller.rb @@ -0,0 +1,11 @@ +module Api + module V1 + class TutorialsController < ApiController + respond_to :json + + def index + respond_with(@tutorials = current_user.tutorials) + end + end + end +end |
