Tidy
This commit is contained in:
21
src/put_handler.hpp
Normal file
21
src/put_handler.hpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <filesystem>
|
||||
#include "server.hpp"
|
||||
#include "httplib.hpp"
|
||||
#include "json.hpp"
|
||||
|
||||
namespace simple_object_storage {
|
||||
|
||||
class PutHandler {
|
||||
public:
|
||||
PutHandler(Server& server);
|
||||
void handle_put_object(const httplib::Request& req, httplib::Response& res);
|
||||
|
||||
private:
|
||||
Server& server_;
|
||||
void add_file_metadata(const std::string& file_path, nlohmann::json& metadata) const;
|
||||
};
|
||||
|
||||
} // namespace simple_object_storage
|
Reference in New Issue
Block a user