Add a picture of me

This commit is contained in:
kamkow1
2025-06-20 14:35:12 +02:00
parent 0fab7bcffe
commit 27581183fd
9 changed files with 31 additions and 34 deletions

4
main.c
View File

@ -92,6 +92,7 @@ void event_handler(struct mg_connection *conn, int ev, void *ev_data)
sb.items,
result->body.count
);
printf("%s\n", reply);
mg_printf(conn, "%s", reply);
mg_send(conn, result->body.items, result->body.count);
}
@ -103,12 +104,13 @@ void init_route_hashtable(void)
shdefault(route_hashtable, &route_page_not_found);
shput(route_hashtable, "/", &route_home);
shput(route_hashtable, "/page-missing", &route_page_not_found);
shput(route_hashtable, "/simple.css", &route_simple_css);
shput(route_hashtable, "/simple.css", &route_simple_css);
shput(route_hashtable, "/favicon.ico", &route_favicon);
#if MY_DEBUG
shput(route_hashtable, "/hotreload.js", &route_hotreload_js);
shput(route_hashtable, "/build-id", &route_build_id);
#endif
shput(route_hashtable, "/me.jpg", &route_me_jpg);
shput(route_hashtable, "/blog", &route_blog);
void put_blogs(Baked_Resource *resource)