Skip to content

Commit 0fad476

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents f25dccf + be7fe2d commit 0fad476

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

Gemfile.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ GEM
33
specs:
44
diff-lcs (1.4.4)
55
graphql (1.11.3)
6-
interscript (2.2.1)
7-
interscript-maps (~> 2.2.0)
6+
interscript (2.3.0)
7+
interscript-maps (~> 2.3.0a)
88
text
99
thor
10-
interscript-maps (2.2.1)
10+
interscript-maps (2.3.0)
1111
rake (13.0.1)
1212
rspec (3.9.0)
1313
rspec-core (~> 3.9.0)
@@ -30,12 +30,12 @@ PLATFORMS
3030

3131
DEPENDENCIES
3232
graphql (~> 1.9)
33-
interscript (= 2.2.1)
33+
interscript (= 2.3.0)
3434
rake
3535
rspec
3636

3737
RUBY VERSION
38-
ruby 3.0.2p107
38+
ruby 2.7.2p137
3939

4040
BUNDLED WITH
41-
2.1.4
41+
2.2.16

lib/interscript-api/lambda_function.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
require_relative "graphql/schema"
33

44
def handler(event:, context: {})
5+
puts 123
6+
puts event
57

68
cors_origin = ENV["DEFAULT_ORIGIN"]
79
input_origin = event.fetch('headers', {}).fetch('origin', "")
810

911
if /#{ENV["CORS_ORIGIN_REGEX"]}/ =~ input_origin
12+
puts 'match origin'
1013
cors_origin = input_origin
1114
end
1215

0 commit comments

Comments
 (0)