mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-01 19:17:47 +00:00
Adding file download.
This commit is contained in:
@@ -13,11 +13,9 @@ namespace OpenWifi {
|
||||
|
||||
std::string AssetName = GetBinding(RESTAPI::Protocol::ID, "");
|
||||
AssetFile = Daemon()->AssetDir() + "/" + AssetName;
|
||||
|
||||
if(!AssetFile.isFile()) {
|
||||
return NotFound();
|
||||
}
|
||||
|
||||
SendFile(AssetFile);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user