mirror of
https://github.com/iv-org/instances-api.git
synced 2025-01-26 23:37:05 -05:00
Add CORS header for '/instances.json'
This commit is contained in:
parent
5a7ba726c9
commit
555186af62
@ -103,7 +103,9 @@ get "/" do |env|
|
||||
end
|
||||
|
||||
get "/instances.json" do |env|
|
||||
env.response.headers["Access-Control-Allow-Origin"] = "*"
|
||||
env.response.content_type = "application/json; charset=utf-8"
|
||||
|
||||
sort_by = env.params.query["sort_by"]?
|
||||
sort_by ||= "users"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user