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/helpers | |
parent | 3f75f522856954690d92358107e78bafd0db0baa (diff) |
Fix #52 - Add API versioning (v1)
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/api/accounts_helper.rb | 2 | ||||
-rw-r--r-- | app/helpers/api/apps_helper.rb | 2 | ||||
-rw-r--r-- | app/helpers/api/follows_helper.rb | 2 | ||||
-rw-r--r-- | app/helpers/api/media_helper.rb | 2 | ||||
-rw-r--r-- | app/helpers/api/salmon_helper.rb | 2 | ||||
-rw-r--r-- | app/helpers/api/statuses_helper.rb | 2 | ||||
-rw-r--r-- | app/helpers/api/subscriptions_helper.rb | 2 | ||||
-rw-r--r-- | app/helpers/home_helper.rb | 6 |
8 files changed, 3 insertions, 17 deletions
diff --git a/app/helpers/api/accounts_helper.rb b/app/helpers/api/accounts_helper.rb deleted file mode 100644 index d9a54c7bc..000000000 --- a/app/helpers/api/accounts_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module Api::AccountsHelper -end diff --git a/app/helpers/api/apps_helper.rb b/app/helpers/api/apps_helper.rb deleted file mode 100644 index f6b0c6635..000000000 --- a/app/helpers/api/apps_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module Api::AppsHelper -end diff --git a/app/helpers/api/follows_helper.rb b/app/helpers/api/follows_helper.rb deleted file mode 100644 index d8022d93c..000000000 --- a/app/helpers/api/follows_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module Api::FollowsHelper -end diff --git a/app/helpers/api/media_helper.rb b/app/helpers/api/media_helper.rb deleted file mode 100644 index ecaa91e7b..000000000 --- a/app/helpers/api/media_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module Api::MediaHelper -end diff --git a/app/helpers/api/salmon_helper.rb b/app/helpers/api/salmon_helper.rb deleted file mode 100644 index 513c6fb7d..000000000 --- a/app/helpers/api/salmon_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module Api::SalmonHelper -end diff --git a/app/helpers/api/statuses_helper.rb b/app/helpers/api/statuses_helper.rb deleted file mode 100644 index 3187f3e3b..000000000 --- a/app/helpers/api/statuses_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module Api::StatusesHelper -end diff --git a/app/helpers/api/subscriptions_helper.rb b/app/helpers/api/subscriptions_helper.rb deleted file mode 100644 index 3796aee42..000000000 --- a/app/helpers/api/subscriptions_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module Api::SubscriptionsHelper -end diff --git a/app/helpers/home_helper.rb b/app/helpers/home_helper.rb index d08264e1e..61a4b4dd8 100644 --- a/app/helpers/home_helper.rb +++ b/app/helpers/home_helper.rb @@ -3,11 +3,11 @@ module HomeHelper { token: @token, - account: render(file: 'api/accounts/show', locals: { account: current_user.account }, formats: :json), + account: render(file: 'api/v1/accounts/show', locals: { account: current_user.account }, formats: :json), timelines: { - home: render(file: 'api/statuses/home', locals: { statuses: @home }, formats: :json), - mentions: render(file: 'api/statuses/mentions', locals: { statuses: @mentions }, formats: :json) + home: render(file: 'api/v1/statuses/home', locals: { statuses: @home }, formats: :json), + mentions: render(file: 'api/v1/statuses/mentions', locals: { statuses: @mentions }, formats: :json) } } end |