mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 16:18:42 -05:00
16 lines
332 B
Ruby
16 lines
332 B
Ruby
|
class ManifestJsonController < ApplicationController
|
||
|
layout false
|
||
|
skip_before_filter :preload_json, :check_xhr
|
||
|
|
||
|
def index
|
||
|
manifest = {
|
||
|
short_name: SiteSetting.title,
|
||
|
display: 'browser',
|
||
|
orientation: 'portrait',
|
||
|
start_url: "#{Discourse.base_uri}/"
|
||
|
}
|
||
|
|
||
|
render json: manifest.to_json
|
||
|
end
|
||
|
end
|