Module: PiholeApi::UnauthorisedEndpoints

Included in:
Client
Defined in:
lib/pihole-api/unauthorised_endpoints.rb

Instance Method Summary collapse

Instance Method Details

#typeObject

These endpoints dont need to be authorised discourse.pi-hole.net/t/pi-hole-api/1863



6
7
8
9
# File 'lib/pihole-api/unauthorised_endpoints.rb', line 6

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

#versionObject



11
12
13
14
# File 'lib/pihole-api/unauthorised_endpoints.rb', line 11

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