add static
This commit is contained in:
parent
f18d7a4bca
commit
ec46ad3290
@ -161,7 +161,7 @@ namespace trs
|
||||
return r;
|
||||
}
|
||||
|
||||
auto upload(std::string from, std::string to)
|
||||
static auto upload(std::string from, std::string to)
|
||||
{
|
||||
auto r = cpr::Get(cpr::Url(from));
|
||||
|
||||
|
@ -48,9 +48,8 @@ auto main(int argc, char* args[]) -> int
|
||||
auto r1 = cli_2.post("func_name", trs::JSON{{ "key", "test message" }});
|
||||
auto j = trs::JSON{{ "key", "test message" }};
|
||||
auto r2 = cli_2.post("func_name", j);
|
||||
hack::log()(r1.text, r2.status_code);
|
||||
|
||||
cli_2.upload("https://file-examples.com/storage/feaf4c715066a139295358c/2017/11/file_example_MP3_700KB.mp3", "/mnt/raid/projects/trs/test.mp3");
|
||||
trs::client::upload("https://file-examples.com/storage/feaf4c715066a139295358c/2017/11/file_example_MP3_700KB.mp3", "/mnt/raid/projects/trs/test.mp3");
|
||||
|
||||
trs::server srv;
|
||||
srv.init("test service");
|
||||
|
Loading…
Reference in New Issue
Block a user