Class: LlmCostTracker::AssetsController

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

Instance Method Summary collapse

Instance Method Details

#stylesheetObject



7
8
9
10
11
# File 'app/controllers/llm_cost_tracker/assets_controller.rb', line 7

def stylesheet
  path = File.join(LlmCostTracker::Assets.root, LlmCostTracker::Assets::STYLESHEET)
  response.set_header("Cache-Control", "public, max-age=31536000, immutable")
  send_file path, type: "text/css", disposition: "inline"
end