This commit is contained in:
Your Name
2025-05-03 09:36:54 +12:00
parent ceb31057a9
commit 66cfde013c
14 changed files with 92 additions and 40 deletions

View File

@@ -11,7 +11,7 @@
#include <sqlite3.h> // Include SQLite
#include <stdexcept> // For std::runtime_error
namespace dropshell {
namespace simple_object_storage {
// Simple RAII helper for file deletion
class ScopeFileDeleter {
@@ -125,7 +125,7 @@ void Server::stop() {
}
void Server::setup_routes() {
const std::string welcome_page = "<html><body><h1>Dropshell Template Registry</h1></body></html>";
const std::string welcome_page = "<html><body><h1>simple_object_storage Template Registry</h1></body></html>";
// Welcome page
server_.Get("/", [welcome_page](const httplib::Request&, httplib::Response& res) {
res.set_content(welcome_page, "text/html");
@@ -403,4 +403,4 @@ std::pair<std::string, std::string> Server::parse_label_tag(const std::string& l
return {label_tag.substr(0, colon_pos), label_tag.substr(colon_pos + 1)};
}
} // namespace dropshell
} // namespace simple_object_storage