aboutsummaryrefslogtreecommitdiffstats
path: root/src/Routes/Home.c
blob: 4526a9da8c393709ad2cf0fcb1f66538d44acc40 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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;
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage