Fix #525 - Add instance information API
This commit is contained in:
parent
7b58c1a694
commit
6be7bde243
6 changed files with 19 additions and 28 deletions
6
app/views/api/v1/instances/show.rabl
Normal file
6
app/views/api/v1/instances/show.rabl
Normal file
|
@ -0,0 +1,6 @@
|
|||
object false
|
||||
|
||||
node(:uri) { Rails.configuration.x.local_domain }
|
||||
node(:title) { Setting.site_title }
|
||||
node(:description) { Setting.site_description }
|
||||
node(:email) { Setting.site_contact_email }
|
|
@ -1,14 +0,0 @@
|
|||
object false
|
||||
|
||||
node(:title) {Setting.site_title}
|
||||
|
||||
node(:max_chars) {500}
|
||||
|
||||
node(:links) do
|
||||
{
|
||||
t('about.learn_more') => url_for(about_more_url),
|
||||
t('about.terms') => url_for(terms_url),
|
||||
t('about.source_code') => "https://github.com/tootsuite/mastodon",
|
||||
t('about.other_instances') => "https://github.com/tootsuite/mastodon/blob/master/docs/Using-Mastodon/List-of-Mastodon-instances.md",
|
||||
}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue