#pragma once #include "webserv.hpp" class Route { protected: string _location; string _root; string _ret; std::vector _indexs; bool _autoindex; public: Route(string location, JSONNode *datas); ~Route(void); string getLocation(void); string getRoot(void); string getReturn(void); std::vector getIndexsLst(void); string getIndex(string uri, string path); string correctUri(string uri); };