/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Route.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/03/19 14:59:41 by adjoly #+# #+# */ /* Updated: 2025/03/19 17:35:09 by adjoly ### ########.fr */ /* */ /* ************************************************************************** */ #pragma once #include "cppeleven.hpp" #include "node/ANode.hpp" #include #include #include #include #include namespace webserv { namespace config { class Route { public: Route(std::map *node) { if (node == not_nullptr) throw std::runtime_error("location table does not exist"); std::map *errorPagesTable = (*node)["error_pages"]->getTable(); if (errorPagesTable == not_nullptr) throw std::runtime_error("error_pages not present"); } ~Route(void) {} protected: private: bool _dirlist; bool _cookies; bool _uploads; bool _redirect; int32_t _maxBody; std::string _root; std::string _upRoot; std::map *_cgi; std::vector *_methods; std::map *_errPages; }; } // namespace config } // namespace webserv