27 void set(
const std::vector<PathComponent> &components,
29 void del(
const std::vector<PathComponent> &components)
override;
30 std::vector<std::string>
list()
const override;
33 nlohmann::json get_metadata(std::string_view filename)
const;
34 std::vector<uint8_t> get_image_data(std::string_view filename)
const;
Router for panoramic image resources.
ResourceRouter(std::shared_ptr< reusex::ProjectDB > db)
void set(const std::vector< PathComponent > &components, const DataPayload &data) override
Set resource data at the given path.
DataPayload get(const std::vector< PathComponent > &components) override
Get resource data at the given path.
void del(const std::vector< PathComponent > &components) override
Delete resource at the given path.
std::vector< std::string > list() const override
List all items in this collection.
ResourceRouter(std::shared_ptr< reusex::ProjectDB > db)
std::variant< std::string, std::vector< uint8_t >, nlohmann::json > DataPayload
Data payload that can be returned by routers.