diff options
Diffstat (limited to 'app/views/api')
20 files changed, 18 insertions, 18 deletions
diff --git a/app/views/api/accounts/followers.rabl b/app/views/api/accounts/followers.rabl deleted file mode 100644 index 9bb0d9c8f..000000000 --- a/app/views/api/accounts/followers.rabl +++ /dev/null @@ -1,2 +0,0 @@ -collection @followers -extends('api/accounts/show') diff --git a/app/views/api/accounts/following.rabl b/app/views/api/accounts/following.rabl deleted file mode 100644 index 9f2155293..000000000 --- a/app/views/api/accounts/following.rabl +++ /dev/null @@ -1,2 +0,0 @@ -collection @following -extends('api/accounts/show') diff --git a/app/views/api/accounts/relationships.rabl b/app/views/api/accounts/relationships.rabl deleted file mode 100644 index 16fdc40d9..000000000 --- a/app/views/api/accounts/relationships.rabl +++ /dev/null @@ -1,2 +0,0 @@ -collection @accounts -extends 'api/accounts/relationship' diff --git a/app/views/api/accounts/statuses.rabl b/app/views/api/accounts/statuses.rabl deleted file mode 100644 index 12f00dd21..000000000 --- a/app/views/api/accounts/statuses.rabl +++ /dev/null @@ -1,2 +0,0 @@ -collection @statuses -extends('api/statuses/show') diff --git a/app/views/api/follows/show.rabl b/app/views/api/follows/show.rabl deleted file mode 100644 index 0f24ddb4d..000000000 --- a/app/views/api/follows/show.rabl +++ /dev/null @@ -1,2 +0,0 @@ -object @account -extends('api/accounts/show') diff --git a/app/views/api/statuses/home.rabl b/app/views/api/statuses/home.rabl deleted file mode 100644 index 12f00dd21..000000000 --- a/app/views/api/statuses/home.rabl +++ /dev/null @@ -1,2 +0,0 @@ -collection @statuses -extends('api/statuses/show') diff --git a/app/views/api/statuses/mentions.rabl b/app/views/api/statuses/mentions.rabl deleted file mode 100644 index 12f00dd21..000000000 --- a/app/views/api/statuses/mentions.rabl +++ /dev/null @@ -1,2 +0,0 @@ -collection @statuses -extends('api/statuses/show') diff --git a/app/views/api/v1/accounts/followers.rabl b/app/views/api/v1/accounts/followers.rabl new file mode 100644 index 000000000..c54b0487e --- /dev/null +++ b/app/views/api/v1/accounts/followers.rabl @@ -0,0 +1,2 @@ +collection @followers +extends('api/v1/accounts/show') diff --git a/app/views/api/v1/accounts/following.rabl b/app/views/api/v1/accounts/following.rabl new file mode 100644 index 000000000..87b454ffa --- /dev/null +++ b/app/views/api/v1/accounts/following.rabl @@ -0,0 +1,2 @@ +collection @following +extends('api/v1/accounts/show') diff --git a/app/views/api/accounts/relationship.rabl b/app/views/api/v1/accounts/relationship.rabl index 3e5bf882c..3e5bf882c 100644 --- a/app/views/api/accounts/relationship.rabl +++ b/app/views/api/v1/accounts/relationship.rabl diff --git a/app/views/api/v1/accounts/relationships.rabl b/app/views/api/v1/accounts/relationships.rabl new file mode 100644 index 000000000..022ea2ac4 --- /dev/null +++ b/app/views/api/v1/accounts/relationships.rabl @@ -0,0 +1,2 @@ +collection @accounts +extends 'api/v1/accounts/relationship' diff --git a/app/views/api/accounts/show.rabl b/app/views/api/v1/accounts/show.rabl index 4f6a3ff99..4f6a3ff99 100644 --- a/app/views/api/accounts/show.rabl +++ b/app/views/api/v1/accounts/show.rabl diff --git a/app/views/api/v1/accounts/statuses.rabl b/app/views/api/v1/accounts/statuses.rabl new file mode 100644 index 000000000..0a0ed13c5 --- /dev/null +++ b/app/views/api/v1/accounts/statuses.rabl @@ -0,0 +1,2 @@ +collection @statuses +extends('api/v1/statuses/show') diff --git a/app/views/api/apps/create.rabl b/app/views/api/v1/apps/create.rabl index 1ff6469a4..1ff6469a4 100644 --- a/app/views/api/apps/create.rabl +++ b/app/views/api/v1/apps/create.rabl diff --git a/app/views/api/v1/follows/show.rabl b/app/views/api/v1/follows/show.rabl new file mode 100644 index 000000000..e07106164 --- /dev/null +++ b/app/views/api/v1/follows/show.rabl @@ -0,0 +1,2 @@ +object @account +extends('api/v1/accounts/show') diff --git a/app/views/api/media/create.rabl b/app/views/api/v1/media/create.rabl index 803a93094..803a93094 100644 --- a/app/views/api/media/create.rabl +++ b/app/views/api/v1/media/create.rabl diff --git a/app/views/api/statuses/context.rabl b/app/views/api/v1/statuses/context.rabl index 71aff690d..e9176dc29 100644 --- a/app/views/api/statuses/context.rabl +++ b/app/views/api/v1/statuses/context.rabl @@ -2,12 +2,12 @@ object false node :ancestors do @ancestors.map do |status| - partial('api/statuses/show', object: status) + partial('api/v1/statuses/show', object: status) end end node :descendants do @descendants.map do |status| - partial('api/statuses/show', object: status) + partial('api/v1/statuses/show', object: status) end end diff --git a/app/views/api/v1/statuses/home.rabl b/app/views/api/v1/statuses/home.rabl new file mode 100644 index 000000000..0a0ed13c5 --- /dev/null +++ b/app/views/api/v1/statuses/home.rabl @@ -0,0 +1,2 @@ +collection @statuses +extends('api/v1/statuses/show') diff --git a/app/views/api/v1/statuses/mentions.rabl b/app/views/api/v1/statuses/mentions.rabl new file mode 100644 index 000000000..0a0ed13c5 --- /dev/null +++ b/app/views/api/v1/statuses/mentions.rabl @@ -0,0 +1,2 @@ +collection @statuses +extends('api/v1/statuses/show') diff --git a/app/views/api/statuses/show.rabl b/app/views/api/v1/statuses/show.rabl index f06aa6e74..3595bafb4 100644 --- a/app/views/api/statuses/show.rabl +++ b/app/views/api/v1/statuses/show.rabl @@ -10,11 +10,11 @@ node(:favourited) { |status| current_account.favourited?(status) } node(:reblogged) { |status| current_account.reblogged?(status) } child :reblog => :reblog do - extends('api/statuses/show') + extends('api/v1/statuses/show') end child :account do - extends('api/accounts/show') + extends('api/v1/accounts/show') end child :media_attachments, object_root: false do |