diff options
author | Vincent Douillet <vincent@vdouillet.fr> | 2023-08-17 18:10:02 +0200 |
---|---|---|
committer | Vincent Douillet <vincent@vdouillet.fr> | 2023-08-19 17:49:54 +0200 |
commit | 7caf4597bcfb64dac04b7190dab1022f1bc4e141 (patch) | |
tree | e754d4e5bd0799dcac12ea3dc77e2f8a7b10ed54 /main.c | |
parent | 1970c9982e99daa26f7fc4c6f16b441a0aa806de (diff) |
file download poc
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -36,15 +36,18 @@ #include "browse.h" #include "cgi.h" #include "config.h" +#include "download.h" #include "http.h" enum page { PAGE_BROWSE, + PAGE_DOWNLOAD, PAGE__MAX }; static const char *const pages[PAGE__MAX] = { - BROWSE_URL + BROWSE_URL, + DOWNLOAD_URL }; int @@ -80,6 +83,9 @@ main(void) case PAGE_BROWSE: browse(&r); break; + case PAGE_DOWNLOAD: + download(&r); + break; default: http_exit(&r, KHTTP_404, NULL); } |