lib/pihole-api/constants.rb in pihole-api-0.0.4 vs lib/pihole-api/constants.rb in pihole-api-0.0.5
- old
+ new
@@ -1,5 +1,11 @@
module PiholeApi
module Constants
API_PATH = 'admin/api.php'
+ LOGIN_PATH = 'admin/login.php'
+ INDEX_PATH = 'admin'
+ TELEPORTER_PATH = 'admin/scripts/pi-hole/php/teleporter.php'
+
+ TOKEN_REGEX = /div\s+id="token"\s+hidden>([^<]+)<\/div>/
+ TOKEN_SEPERATOR = ";"
end
end