class

Tokei::Api::Controllers::OgController

Inherits Reference < Object

Constants

CACHE_TTL = (ENV["OG_CACHE_TTL_SECONDS"]? || "21600").to_i64
PLACEHOLDER_JSON = "{}"
PLACEHOLDER_TTL = (ENV["OG_PLACEHOLDER_CACHE_TTL_SECONDS"]? || "300").to_i64
SAFE = /^[A-Za-z0-9._-]+$/

Class methods

cache_dir
Source
rsvg_path
Source
setup
Source
wants_svg?(env : HTTP::Server::Context) : Bool

Content negotiation helper: query param > Accept header > default png

Source