Sha256: ed4f3fd26415a030bb949781d9555d468e299243a2a904cdbf957cd5c412c428

Contents?: true

Size: 382 Bytes

Versions: 7

Compression:

Stored size: 382 Bytes

Contents

module PiholeApi
  module UnauthorisedEndpoints
    # These endpoints dont need to be authorised
    # https://discourse.pi-hole.net/t/pi-hole-api/1863

    def type
      command = 'type'
      authorise_and_send(http_method: :get, command: command)
    end

    def version
      command = 'version'
      authorise_and_send(http_method: :get, command: command)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pihole-api-0.0.7 lib/pihole-api/unauthorised_endpoints.rb
pihole-api-0.0.6 lib/pihole-api/unauthorised_endpoints.rb
pihole-api-0.0.5 lib/pihole-api/unauthorised_endpoints.rb
pihole-api-0.0.4 lib/pihole-api/unauthorised_endpoints.rb
pihole-api-0.0.3 lib/pihole-api/unauthorised_endpoints.rb
pihole-api-0.0.2 lib/pihole-api/unauthorised_endpoints.rb
pihole-api-0.0.1 lib/pihole-api/unauthorised_endpoints.rb