You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
443 B

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