@ -11,7 +11,7 @@
"server_name": "localhost",
"listens": ["8080"],
"root": "./public",
"index": ["index.html"],
"indexs": ["index.html"],
"locations":
{
"/docs":
@ -9,4 +9,8 @@ class Route {
public:
Route(JSONNode *datas);
~Route(void);
string getRoot(void);
string getReturn(void);
std::vector<string> getIndexs(void);
bool getAutoindex(void);
};
@ -17,3 +17,10 @@ Route::Route(JSONNode *datas) {
}
Route::~Route(void) {}
std::vector<string> Route::getIndexs(void) {
return _indexs;