Not working yet.
This commit is contained in:
@@ -88,7 +88,6 @@ bool Server::start() {
|
||||
}
|
||||
setup_routes();
|
||||
|
||||
std::cout << "Server starting on " << config_.host << ":" << config_.port << std::endl;
|
||||
running_ = true;
|
||||
if (!server_.listen(config_.host.c_str(), config_.port)) {
|
||||
running_ = false;
|
||||
@@ -287,7 +286,7 @@ void Server::handle_put_object(const httplib::Request& req, httplib::Response& r
|
||||
dbEntry entry;
|
||||
entry.label_tag = label_tag;
|
||||
entry.hash = hash_str;
|
||||
entry.metadata = nlohmann::json::object(); // Empty metadata for now
|
||||
entry.metadata = metadata; // Empty metadata for now
|
||||
|
||||
if (!db_->insert(entry)) {
|
||||
res.status = 500;
|
||||
|
Reference in New Issue
Block a user