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
+4 -1
View File
@@ -10,9 +10,9 @@
#include "oatpp/web/server/HttpConnectionHandler.hpp"
#include "component/AppComponent.hpp"
#include "controller/CoverArtController.hpp"
#include "controller/LoginController.hpp"
#include "controller/SongController.hpp"
//#include "database/base_repository.h"
#include "model/Models.h"
namespace fs = std::filesystem;
@@ -24,8 +24,11 @@ void run(const model::BinaryPath& bConf)
OATPP_COMPONENT(std::shared_ptr<oatpp::web::server::HttpRouter>, router);
auto coverArtController = std::make_shared<controller::CoverArtController>(bConf);
auto logController = std::make_shared<controller::LoginController>(bConf);
auto sngController = std::make_shared<controller::SongController>(bConf);
coverArtController->addEndpointsToRouter(router);
logController->addEndpointsToRouter(router);
sngController->addEndpointsToRouter(router);