Class: LiffController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/liff_controller.rb

Instance Method Summary collapse

Instance Method Details

#entryObject



6
7
8
# File 'app/controllers/liff_controller.rb', line 6

def entry
  @liff = LiffService.new(@liff_param)
end

#routeObject



10
11
12
13
14
15
# File 'app/controllers/liff_controller.rb', line 10

def route
  path, query = params["path"].split("?")
  query = Rack::Utils.parse_nested_query(query)
  http_method = query["_method"]&.upcase || "GET"
  @body = reserve_route(path, http_method: http_method, request_params: source_info.merge(query), format: :liff)
end