Keep all baked assets in one place

This commit is contained in:
kamkow1
2025-06-10 00:19:02 +02:00
parent f864f92d94
commit fbe749a13e
9 changed files with 140 additions and 150 deletions

9
main.c
View File

@ -9,8 +9,7 @@
#include "stb/stb_ds.h"
#include "routes.h"
#include "gpp.h"
#include "tmpls.h"
#include "baked.h"
typedef void (*Route_Handler)(struct mg_connection *conn, struct mg_http_message *msg);
@ -44,8 +43,7 @@ static void init_route_hashtable(void)
int main(int argc, char ** argv)
{
gpp_init();
tmpls_init();
init_baked_resources();
mg_log_set(MG_LL_DEBUG);
struct mg_mgr mgr;
@ -62,8 +60,7 @@ int main(int argc, char ** argv)
mg_mgr_free(&mgr);
shfree(route_hashtable);
tmpls_deinit();
gpp_deinit();
free_baked_resources();
return 0;
}