Implemented regex and directories

This commit is contained in:
Nate Choe
2022-01-22 21:20:57 -06:00
parent fbb3a4e8cd
commit be8e081cca
4 changed files with 69 additions and 21 deletions

View File

@@ -17,6 +17,8 @@
*/
#ifndef _HAVE_SITEFILE
#define _HAVE_SITEFILE
#include <regex.h>
#include <util.h>
typedef enum {
@@ -26,7 +28,7 @@ typedef enum {
typedef struct {
RequestType respondto;
Command command;
char *path;
regex_t path;
char *arg;
} SiteCommand;