stellar_federation-rails 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b07fc81960b962583f800de00476b422ffd7af83e1399c6fd45d924cd04a612
|
4
|
+
data.tar.gz: e97febc55d33d9955dfd50249e255ef4476e45a37e39675d56fe28b57fe76104
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ed55ed90a65fb031392a038bf5f415b5bda0f1b7b47f35312e2ae0d0e1923c11a330bb2f2b4b17579e5ec65911327b7b9c416db1a548c42d33b3dbaf408fd5f
|
7
|
+
data.tar.gz: f66ec9d869e2ffdf40259624a28edbf8057122fd19c2a67d4db9f044f33269143b3087b6fabdf95fc342aa66d7baecec9ede3fbd465879a15090571206ad957c
|
@@ -2,6 +2,8 @@ module StellarFederation
|
|
2
2
|
module Api
|
3
3
|
module V1
|
4
4
|
class QueriesController < ApplicationController
|
5
|
+
before_filter :set_cors_headers, only: %i[index]
|
6
|
+
|
5
7
|
def index
|
6
8
|
result = Queries::ProcessQuery.(query_params: query_params)
|
7
9
|
|
@@ -30,6 +32,10 @@ module StellarFederation
|
|
30
32
|
def query_params
|
31
33
|
params.permit(:q, :type).to_hash.with_indifferent_access
|
32
34
|
end
|
35
|
+
|
36
|
+
def set_cors_headers
|
37
|
+
response.headers["Access-Control-Allow-Origin"] = "*"
|
38
|
+
end
|
33
39
|
end
|
34
40
|
end
|
35
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stellar_federation-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ace Subido
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|