From 6df0961e45b58264d13ea8dbaaf15e580136bfe6 Mon Sep 17 00:00:00 2001 From: Vincent Douillet Date: Sun, 16 Feb 2025 22:33:27 +0100 Subject: WIP create new folders --- main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'main.c') 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; -- cgit v1.2.3