autoindex in progress but need to check stuff on master branch
This commit is contained in:
25
srcs/webserv/autoindex.hpp
Normal file
25
srcs/webserv/autoindex.hpp
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
#ifndef AUTOINDEX_HPP
|
||||
# define AUTOINDEX_HPP
|
||||
|
||||
// # define HTML_ERROR(STATUS) "\r\n<!DOCTYPE html><html><head><title>"STATUS"</title></head><body><h1 style=\"text-align:center\">"STATUS"</h1><hr><p style=\"text-align:center\">Le Webserv/0.1</p></body></html>"
|
||||
|
||||
# define AUTOINDEX_START \
|
||||
"<!DOCTYPE html>"\
|
||||
"<html>"\
|
||||
"<head>"\
|
||||
"<title> Index of "
|
||||
|
||||
# define AUTOINDEX_MID \
|
||||
"</title>"\
|
||||
"</head>"\
|
||||
"<body>"
|
||||
|
||||
|
||||
# define AUTOINDEX_END \
|
||||
"</body>"\
|
||||
"</html>"
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user