aboutsummaryrefslogtreecommitdiff
path: root/src/Routes/Home.c
diff options
context:
space:
mode:
authorfrosty <gabriel@bwaaa.monster>2026-06-05 09:47:24 -0400
committerfrosty <gabriel@bwaaa.monster>2026-06-05 09:49:27 -0400
commitad949a452fb9ec6290adb8ec14a04171233a8426 (patch)
tree02f89ccd8db37b975c0eff93343f487e506accb3 /src/Routes/Home.c
parent24f9909badd4e7aa1f3aeef717b93e9b71c20a4e (diff)
parentb8fd03344d1550cce1d13c753c400d00c2c11b97 (diff)
downloadomnisearch-ad949a452fb9ec6290adb8ec14a04171233a8426.tar.gz
chore: merge indev into master
Diffstat (limited to 'src/Routes/Home.c')
-rw-r--r--src/Routes/Home.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Routes/Home.c b/src/Routes/Home.c
index 0534517..bf85fe1 100644
--- a/src/Routes/Home.c
+++ b/src/Routes/Home.c
@@ -2,12 +2,17 @@
#include "../Utility/Utility.h"
#include <beaker.h>
#include <stdlib.h>
+#include <string.h>
int home_handler(UrlParams *params) {
(void)params;
char *theme = get_theme("");
char *locale = get_locale(NULL);
+ char **themes = NULL;
+ int themes_count = 0;
+ get_available_themes(&themes, &themes_count);
+
TemplateContext ctx = new_context();
context_set(&ctx, "theme", theme);
context_set(&ctx, "version", VERSION);