aboutsummaryrefslogtreecommitdiff
path: root/src/Main.c
diff options
context:
space:
mode:
authorfrosty <gabriel@bwaaa.monster>2026-02-24 12:01:02 -0500
committerfrosty <gabriel@bwaaa.monster>2026-02-24 12:01:02 -0500
commite116a5d1f558c14160afebbaeac969a53af6a089 (patch)
tree17d3ef4328e0456094b09a48c7b2b09d72545983 /src/Main.c
parent89c011d421f86e0b6a3414ea012bb198167f295a (diff)
downloadomnisearch-e116a5d1f558c14160afebbaeac969a53af6a089.tar.gz
add image proxying
Diffstat (limited to 'src/Main.c')
-rw-r--r--src/Main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Main.c b/src/Main.c
index d1b2eb9..b1fd113 100644
--- a/src/Main.c
+++ b/src/Main.c
@@ -7,6 +7,7 @@
#include "Config.h"
#include "Routes/Home.h"
#include "Routes/Images.h"
+#include "Routes/ImageProxy.h"
#include "Routes/Search.h"
int handle_opensearch(UrlParams *params) {
@@ -31,6 +32,7 @@ int main() {
set_handler("/opensearch.xml", handle_opensearch);
set_handler("/search", results_handler);
set_handler("/images", images_handler);
+ set_handler("/proxy", image_proxy_handler);
fprintf(stderr, "Starting Omnisearch on %s:%d\n", config.host, config.port);