add Autoindex

This commit is contained in:
Talyx
2022-01-19 17:20:47 +03:00
parent c89c65f354
commit f28bf82e0c
6 changed files with 282 additions and 8 deletions

20
includes/Autoindex.hpp Normal file
View File

@@ -0,0 +1,20 @@
#ifndef AUTOINDEX_HPP
#define AUTOINDEX_HPP
#include "webserv.hpp"
class Autoindex
{
private:
public:
Autoindex();
static std::string getPage(std::string path, std::string host);
static std::string getReference(std::string file, std::string dir, std::string host);
~Autoindex();
};
#endif