This commit is contained in:
frosty
2026-02-23 00:57:21 -05:00
commit b280ab6bcd
37 changed files with 2787 additions and 0 deletions

14
src/Routes/Home.c Normal file
View File

@@ -0,0 +1,14 @@
#include "Home.h"
#include <stdlib.h>
int home_handler(UrlParams *params) {
(void)params;
TemplateContext ctx = new_context();
char *rendered_html = render_template("home.html", &ctx);
send_response(rendered_html);
free(rendered_html);
free_context(&ctx);
return 0;
}