diff options
| author | Vincent Douillet <vincent@vdouillet.fr> | 2025-02-16 22:33:27 +0100 |
|---|---|---|
| committer | Vincent Douillet <vincent@vdouillet.fr> | 2026-03-12 23:01:01 +0100 |
| commit | 4d3dca2af0500bdca863355ac318d8f870158c2d (patch) | |
| tree | 64042c60855b4a8bad9e5770f914f063d102fa06 /main.c | |
| parent | 63df5a853dc672f45cd95c9247d419e60812ba8e (diff) | |
create new folders
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |
