Still in the process of switching to prepared statements. Left TODO for removing the make_shared_ptr for the raw song data. Added feature to retrieve a sing cover art record in json format

This commit is contained in:
kdeng00
2019-09-05 20:57:13 -04:00
parent 5b9f2a0505
commit ada50b3d5c
8 changed files with 303 additions and 34 deletions
+2
View File
@@ -153,6 +153,7 @@ namespace controller
std::ostreambuf_iterator<char>(buf));
fl.close();
// TODO: no need to make this shared
auto rawSong = std::make_shared<oatpp::String>(oatpp::String(buf.str().data(), (v_int32)buf.str().size(), true));
auto response = createResponse(Status::CODE_200, *rawSong);
@@ -163,6 +164,7 @@ namespace controller
// TODO: create endpoint for updating songs
// TODO: work on this to handle the database records
ENDPOINT("DELETE", "api/v1/song/data/{id}", songDelete, PATH(Int32, id)) {
model::Song song;