blob: 0c84509808beb91df86f698ae861a65170beba0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# frozen_string_literal: true
# The father class of all controllers.
class ApplicationController < ActionController::API
before_action do
ActiveStorage::Current.url_options = { protocol: request.protocol, host: request.host, port: request.port }
end
# def logic(permitted_params)
# @logic = Object.const_get("#{self.class}::#{action_name.camelize}Logic").new(permitted_params)
# end
private
def generate_token
TokenGenerationService.new(service_params).call(DateTime.current + 5.days)
end
end
|