mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FEATURE: Add stylesheets to bootstrap.json endpoint
This allows API consumers (such as Ember CLI) to dynamically get a list of styles to embed.
This commit is contained in:
parent
110f6ec6dd
commit
0f9a58e06f
3 changed files with 49 additions and 2 deletions
|
@ -15,6 +15,8 @@ describe BootstrapController do
|
|||
expect(bootstrap).to be_present
|
||||
expect(bootstrap['title']).to be_present
|
||||
expect(bootstrap['setup_data']['base_url']).to eq(Discourse.base_url)
|
||||
expect(bootstrap['stylesheets']).to be_present
|
||||
|
||||
preloaded = bootstrap['preloaded']
|
||||
expect(preloaded['site']).to be_present
|
||||
expect(preloaded['siteSettings']).to be_present
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue