diff options
| author | frosty <gabriel@bwaaa.monster> | 2026-02-24 12:01:02 -0500 |
|---|---|---|
| committer | frosty <gabriel@bwaaa.monster> | 2026-02-24 12:01:02 -0500 |
| commit | e116a5d1f558c14160afebbaeac969a53af6a089 (patch) | |
| tree | 17d3ef4328e0456094b09a48c7b2b09d72545983 /src/Main.c | |
| parent | 89c011d421f86e0b6a3414ea012bb198167f295a (diff) | |
| download | omnisearch-e116a5d1f558c14160afebbaeac969a53af6a089.tar.gz | |
add image proxying
Diffstat (limited to 'src/Main.c')
| -rw-r--r-- | src/Main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |
