summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/main.c b/main.c
index eab7bca..4ad1bf6 100644
--- a/main.c
+++ b/main.c
@@ -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);
}