diff --git a/backend/src/main.cpp b/backend/src/main.cpp index a6a1844..7300b0e 100644 --- a/backend/src/main.cpp +++ b/backend/src/main.cpp @@ -22,7 +22,6 @@ int main() // test password passwords.insert("TestPass1&"); db.execute("INSERT INTO passwords (password) VALUES ('TestPass1&');"); - db.printTable("passwords"); // Enable CORS crow::App app; diff --git a/backend/src/server.cpp b/backend/src/server.cpp index f29cc12..4e575e8 100644 --- a/backend/src/server.cpp +++ b/backend/src/server.cpp @@ -17,8 +17,8 @@ namespace server CROW_ROUTE(app, "/passwords") ([passwords]() { crow::json::wvalue response; - // TODO: change this to be a list std::vector result; + result.reserve(passwords.size()); for (const auto &password : passwords) { result.push_back(password);