diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-27 16:58:23 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-09-27 16:59:08 +0200 |
commit | 4f9b7432dd4d323ac6cc4efceeae2efaffe62e7d (patch) | |
tree | acae9e59bd6971885f7cb7b7ed45c4c9d1af4fca /app/controllers/api | |
parent | 3f75f522856954690d92358107e78bafd0db0baa (diff) |
Fix #52 - Add API versioning (v1)
Diffstat (limited to 'app/controllers/api')
-rw-r--r-- | app/controllers/api/v1/accounts_controller.rb (renamed from app/controllers/api/accounts_controller.rb) | 2 | ||||
-rw-r--r-- | app/controllers/api/v1/apps_controller.rb (renamed from app/controllers/api/apps_controller.rb) | 2 | ||||
-rw-r--r-- | app/controllers/api/v1/follows_controller.rb (renamed from app/controllers/api/follows_controller.rb) | 2 | ||||
-rw-r--r-- | app/controllers/api/v1/media_controller.rb (renamed from app/controllers/api/media_controller.rb) | 2 | ||||
-rw-r--r-- | app/controllers/api/v1/statuses_controller.rb (renamed from app/controllers/api/statuses_controller.rb) | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/api/accounts_controller.rb b/app/controllers/api/v1/accounts_controller.rb index 490c28e75..23f48782f 100644 --- a/app/controllers/api/accounts_controller.rb +++ b/app/controllers/api/v1/accounts_controller.rb @@ -1,4 +1,4 @@ -class Api::AccountsController < ApiController +class Api::V1::AccountsController < ApiController before_action :doorkeeper_authorize! before_action :set_account respond_to :json diff --git a/app/controllers/api/apps_controller.rb b/app/controllers/api/v1/apps_controller.rb index 629cb2416..f7a5e0b0a 100644 --- a/app/controllers/api/apps_controller.rb +++ b/app/controllers/api/v1/apps_controller.rb @@ -1,4 +1,4 @@ -class Api::AppsController < ApplicationController +class Api::V1::AppsController < ApplicationController respond_to :json def create diff --git a/app/controllers/api/follows_controller.rb b/app/controllers/api/v1/follows_controller.rb index dbd44cc54..de006f671 100644 --- a/app/controllers/api/follows_controller.rb +++ b/app/controllers/api/v1/follows_controller.rb @@ -1,4 +1,4 @@ -class Api::FollowsController < ApiController +class Api::V1::FollowsController < ApiController before_action :doorkeeper_authorize! respond_to :json diff --git a/app/controllers/api/media_controller.rb b/app/controllers/api/v1/media_controller.rb index d5a0a124a..4896534ad 100644 --- a/app/controllers/api/media_controller.rb +++ b/app/controllers/api/v1/media_controller.rb @@ -1,4 +1,4 @@ -class Api::MediaController < ApiController +class Api::V1::MediaController < ApiController before_action :doorkeeper_authorize! respond_to :json diff --git a/app/controllers/api/statuses_controller.rb b/app/controllers/api/v1/statuses_controller.rb index 44fb40bae..4196852f2 100644 --- a/app/controllers/api/statuses_controller.rb +++ b/app/controllers/api/v1/statuses_controller.rb @@ -1,4 +1,4 @@ -class Api::StatusesController < ApiController +class Api::V1::StatusesController < ApiController before_action :doorkeeper_authorize! respond_to :json |