summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2025-02-16 22:33:27 +0100
committerVincent Douillet <vincent@vdouillet.fr>2025-02-16 22:33:27 +0100
commit6df0961e45b58264d13ea8dbaaf15e580136bfe6 (patch)
tree50a6563cf4c7a69ccfef3ced79cc9e177f378eff /main.c
parenta976d39e6b5f3fbc8e8d2286daf6a22b858f7dc8 (diff)
WIP create new folderscreate
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.c b/main.c
index b060d15..71ae864 100644
--- a/main.c
+++ b/main.c
@@ -36,6 +36,7 @@
#include "browse.h"
#include "cgi.h"
#include "config.h"
+#include "create.h"
#include "delete.h"
#include "download.h"
#include "http.h"
@@ -46,6 +47,7 @@ enum page {
PAGE_DOWNLOAD,
PAGE_UPLOAD,
PAGE_DELETE,
+ PAGE_CREATE,
PAGE__MAX
};
@@ -54,6 +56,7 @@ static const char *const pages[PAGE__MAX] = {
DOWNLOAD_URL,
UPLOAD_URL,
DELETE_URL,
+ CREATE_URL,
};
int
@@ -121,6 +124,9 @@ main(void)
case PAGE_DELETE:
del(&r);
break;
+ case PAGE_CREATE:
+ create(&r);
+ break;
default:
http_exit(&r, KHTTP_404, NULL);
goto end;