mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
				synced 2025-10-31 10:47:48 +00:00 
			
		
		
		
	Signed-off-by: stephb9959 <stephane.bourque@gmail.com>
This commit is contained in:
		| @@ -27,6 +27,27 @@ namespace OpenWifi { | ||||
|             return ReturnObject(List); | ||||
|         } | ||||
|  | ||||
|         if(GetBoolParameter("dictionary")) { | ||||
|             static std::vector<std::pair<std::string,std::string>> KnownKeys = | ||||
|                     { | ||||
|                             { "google.maps.apikey" , "A Google Key specific for the Google MAPS API."}, | ||||
|                             { "iptocountry.ipinfo.token", "IPInfo.io service token."}, | ||||
|                             { "iptocountry.ipdata.apikey", "IPData.co API Key."}, | ||||
|                             { "iptocountry.ip2location.apikey", "IP2Location.com API Key"} | ||||
|                     }; | ||||
|  | ||||
|             Poco::JSON::Object  Answer; | ||||
|             Poco::JSON::Array   Entries; | ||||
|             for(const auto &[key,description]:KnownKeys) { | ||||
|                 Poco::JSON::Object  E; | ||||
|                 E.set("key",key); | ||||
|                 E.set("description",description); | ||||
|                 Entries.add(E); | ||||
|             } | ||||
|             Answer.set("knownKeys", Entries); | ||||
|             return ReturnObject(Answer); | ||||
|         } | ||||
|  | ||||
|         auto Key = GetBinding("secret"); | ||||
|         if(Key.empty()) { | ||||
|             return BadRequest(RESTAPI::Errors::MissingOrInvalidParameters); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 stephb9959
					stephb9959