0
0
Fork 0

Fix #52 - Add API versioning (v1)

This commit is contained in:
Eugen Rochko 2016-09-27 16:58:23 +02:00
parent 3f75f52285
commit 4f9b7432dd
53 changed files with 77 additions and 134 deletions

View file

@ -1,2 +0,0 @@
module Api::AccountsHelper
end

View file

@ -1,2 +0,0 @@
module Api::AppsHelper
end

View file

@ -1,2 +0,0 @@
module Api::FollowsHelper
end

View file

@ -1,2 +0,0 @@
module Api::MediaHelper
end

View file

@ -1,2 +0,0 @@
module Api::SalmonHelper
end

View file

@ -1,2 +0,0 @@
module Api::StatusesHelper
end

View file

@ -1,2 +0,0 @@
module Api::SubscriptionsHelper
end

View file

@ -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