Not working yet.

This commit is contained in:
Your Name
2025-05-03 10:24:02 +12:00
parent 24a4c66c13
commit a658ba1de6
5 changed files with 3 additions and 46 deletions

View File

@@ -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;