get do
        slug = params[:slug]

        cache(key: "api:categories:#{slug}", expires_in: 1.hour) do
          category = ::Category.find(slug)