mirror of
				https://github.com/Telecominfraproject/wlan-cloud-owprov.git
				synced 2025-10-31 10:37:57 +00:00 
			
		
		
		
	Signed-off-by: stephb9959 <stephane.bourque@gmail.com>
This commit is contained in:
		| @@ -3,19 +3,19 @@ | ||||
| // | ||||
|  | ||||
| #include "RESTAPI_asset_server.h" | ||||
| #include "Daemon.h" | ||||
| #include "Poco/File.h" | ||||
| #include "framework/ow_constants.h" | ||||
| #include "Daemon.h" | ||||
|  | ||||
| namespace OpenWifi { | ||||
|     void RESTAPI_asset_server::DoGet() { | ||||
|         Poco::File  AssetFile; | ||||
| 	void RESTAPI_asset_server::DoGet() { | ||||
| 		Poco::File AssetFile; | ||||
|  | ||||
|         std::string AssetName = GetBinding(RESTAPI::Protocol::ID, ""); | ||||
|         AssetFile = Daemon()->AssetDir() + "/" + AssetName; | ||||
|         if(!AssetFile.isFile()) { | ||||
|             return NotFound(); | ||||
|         } | ||||
|         SendFile(AssetFile); | ||||
|     } | ||||
| } | ||||
| 		std::string AssetName = GetBinding(RESTAPI::Protocol::ID, ""); | ||||
| 		AssetFile = Daemon()->AssetDir() + "/" + AssetName; | ||||
| 		if (!AssetFile.isFile()) { | ||||
| 			return NotFound(); | ||||
| 		} | ||||
| 		SendFile(AssetFile); | ||||
| 	} | ||||
| } // namespace OpenWifi | ||||
		Reference in New Issue
	
	Block a user
	 stephb9959
					stephb9959