about summary refs log tree commit diff
path: root/app/views/api/v1
diff options
context:
space:
mode:
authorAsh Furrow <ash@ashfurrow.com>2017-04-20 21:30:59 -0400
committerEugen <eugen@zeonfederated.com>2017-04-21 03:30:59 +0200
commita0ed88a99b736cc786b048126580a7e73c68b07e (patch)
treea1d53aa9f65a0cfe4717ca3f31819bb3c74bd490 /app/views/api/v1
parent25d2853db2cb6603c398b6622526e579e974d593 (diff)
Adds version to about/more and API (#2181)
* Adds version.

* Cleans up code.

* Removes standalone endpoint and adds version to instance endpoint.

* Addresses feedback from #2181.
Diffstat (limited to 'app/views/api/v1')
-rw-r--r--app/views/api/v1/instances/show.rabl1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/api/v1/instances/show.rabl b/app/views/api/v1/instances/show.rabl
index f5598fde3..e1d4700a0 100644
--- a/app/views/api/v1/instances/show.rabl
+++ b/app/views/api/v1/instances/show.rabl
@@ -4,3 +4,4 @@ node(:uri)         { site_hostname }
 node(:title)       { Setting.site_title }
 node(:description) { Setting.site_description }
 node(:email)       { Setting.site_contact_email }
+node(:version)     { Mastodon::VERSION }