Browse Source

added getters + github account fix

test
nicolas-arnaud 2 years ago
parent
commit
9d9980df94
  1. 2
      default.json
  2. 4
      includes/Route.hpp
  3. 7
      srcs/load/Route.cpp

2
default.json

@ -11,7 +11,7 @@
"server_name": "localhost",
"listens": ["8080"],
"root": "./public",
"index": ["index.html"],
"indexs": ["index.html"],
"locations":
{
"/docs":

4
includes/Route.hpp

@ -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);
};

7
srcs/load/Route.cpp

@ -17,3 +17,10 @@ Route::Route(JSONNode *datas) {
}
Route::~Route(void) {}
string getRoot(void);
string getReturn(void);
std::vector<string> Route::getIndexs(void) {
return _indexs;
}
bool getAutoindex(void);

Loading…
Cancel
Save