})->setName('trades put'); //Recommend all $app->get('/recommend/all', function () { $cra = new CesRestAPI(); print $cra->getAllRecommendsJSON(); })->setName('recommend all'); //Recommends by user $app->get('/recommend/:uid', function ($uid) { $cra = new CesRestAPI(); print $cra->getRecommendsByUserJSON($uid); })->setName('recommends by user'); $app->get('/balances/all', function () { $cgw = new CesGateway(); $result = $cgw->login(); if ($result) { print $cgw->getExportCSVJson("balances"); } //close connection curl_close($cgw->ch); })->setName('Balances all'); // POST route $app->post('/post', function () { echo 'This is a POST route'; }); // PUT route $app->put('/put', function () { echo 'This is a PUT route'; }); // PATCH route $app->patch('/patch', function () { echo 'This is a PATCH route';