# 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 Services::TokenGenerationService.new(service_params).call(DateTime.current + 5.days) end end