diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -36,6 +36,7 @@ #include "browse.h" #include "cgi.h" #include "config.h" +#include "delete.h" #include "download.h" #include "http.h" #include "upload.h" @@ -44,13 +45,15 @@ enum page { PAGE_BROWSE, PAGE_DOWNLOAD, PAGE_UPLOAD, + PAGE_DELETE, PAGE__MAX }; static const char *const pages[PAGE__MAX] = { BROWSE_URL, DOWNLOAD_URL, - UPLOAD_URL + UPLOAD_URL, + DELETE_URL, }; int @@ -102,6 +105,9 @@ main(void) case PAGE_UPLOAD: ret = upload(&r); break; + case PAGE_DELETE: + ret = del(&r); + break; default: http_exit(&r, KHTTP_404, NULL); } |