mirror of
				https://github.com/Telecominfraproject/wlan-cloud-owprov.git
				synced 2025-10-31 02:27:52 +00:00 
			
		
		
		
	Signed-off-by: stephb9959 <stephane.bourque@gmail.com>
This commit is contained in:
		| @@ -633,6 +633,18 @@ namespace OpenWifi { | ||||
| 			ReturnObject(Answer); | ||||
| 		} | ||||
|  | ||||
| 		template<typename T> void Object(const char *Name, const std::vector<T> & Objects) { | ||||
| 			Poco::JSON::Object  Answer; | ||||
| 			RESTAPI_utils::field_to_json(Answer,Name,Objects); | ||||
| 			ReturnObject(Answer); | ||||
| 		} | ||||
|  | ||||
| 		template <typename T> void Object(const T &O) { | ||||
| 			Poco::JSON::Object  Answer; | ||||
| 			O.to_json(Answer); | ||||
| 			ReturnObject(Answer); | ||||
| 		} | ||||
|  | ||||
| 		Poco::Logger & Logger() { return Logger_; } | ||||
|  | ||||
| 		virtual void DoGet() = 0 ; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 stephb9959
					stephb9959