Files
mach_examples/06_todo_events/main.c
2026-05-22 12:52:01 -05:00

20 lines
345 B
C

#include <mach.h>
#include <session_auth.h>
#include "todos/todos.c"
#include "activity/activity.c"
void mach(){
todos_config();
activity_config();
session_auth_config();
error(m_error, {mustache("5xx")});
error(m_not_found, {mustache("404")});
middleware(session());
resource("home", "/",
.get = {mustache("home")}
);
}