diff --git a/src/server.cpp b/src/server.cpp index 8fa37ff..013cdb3 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -15,6 +15,7 @@ #include "string_utils.hpp" // Include the new utility header #include "put_handler.hpp" #include "utils.hpp" +#include "welcome_page.hpp" namespace simple_object_storage { @@ -140,120 +141,6 @@ void Server::stop() { } } -std::string welcome_page() { - return R"( - - -
- - -A lightweight, efficient object storage service
-Store and retrieve objects using unique hashes or label:tag combinations.
-Access your objects through a clean, intuitive REST API interface.
-Protected endpoints with token-based authentication for write operations.
-GET /object/{hash}
- Retrieve an object by hashGET /hash/{label:tag}
- Get hash for a label:tagGET /exists/{hash}
- Check if an object existsGET /dir
- List all objectsPUT /upload
- Upload a new objectGET /meta/{hash}
- Get object metadataA lightweight, simple object storage service
+Store and retrieve objects using unique hashes or label:tag combinations.
+Access objects through a clean, intuitive REST API interface.
+GET /object/{hash}
- Retrieve an object by hashGET /hash/{label:tag}
- Get hash for a label:tagGET /exists/{hash}
- Check if an object existsGET /dir
- List all objectsGET /meta/{hash}
- Get object metadata