Files
mach_examples/06_todo_events/main.c

20 lines
324 B
C
Raw Normal View History

2025-07-24 12:46:01 -05:00
#include <mach.h>
#include <session_auth.h>
#include "todos/todos.c"
#include "activity/activity.c"
void mach(){
middleware(session());
resource("home", "/",
.get = {mustache("home")}
);
error(m_error, {mustache("5xx")});
error(m_not_found, {mustache("404")});
todos();
activity();
session_auth();
}