Skip to content

Commit 3f307af

Browse files
author
webdev778
committed
Remove test scode
1 parent 2cd23ee commit 3f307af

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

lib/interscript-api/lambda_function.rb

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,6 @@
33
require "bundler/setup"
44

55
def handler(event:, context: {})
6-
puts 123
7-
puts ENV["RABADA_DATA"]
8-
puts File.directory?(ENV["RABADA_DATA"])
9-
File.open("#{ENV["RABADA_DATA"]}/log.txt", "w") { |f| f.write "#{Time.now} - User logged in\n" }
10-
file = File.open("#{ENV["RABADA_DATA"]}/log.txt")
11-
file_data = file.read
12-
puts file_data
13-
file.close
14-
puts ENV
15-
require 'fileutils'
16-
begin
17-
FileUtils.mkdir_p(ENV["RABABA_DATA"])
18-
puts "Access Ok"
19-
rescue => e
20-
puts e.message
21-
end
22-
236
cors_origin = ENV["DEFAULT_ORIGIN"]
247
input_origin = event.fetch('headers', {}).fetch('origin', "")
258

0 commit comments

Comments
 (0)