serradura/slack-time-tracker

View on GitHub
app/controllers/api/v1/commands_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Api
  module V1
    class CommandsController < ApplicationController
      def invoke
        Chronic.time_class = Time.zone

        render command_response.data
      end

      private

      def command_response
        SlashCommand::Invoke.command_with(params)
      end
    end
  end
end