#include #include #include "todos/todos.c" #include "activity/activity.c" config mach(){ return (config) { .resources = {{ {"home", "/", .get = {{ render((r){(asset){ #embed "static/home.mustache.html" }}) }} }}, .before = {session()}, .context = { {"layout", (asset){ #embed "static/layout.mustache.html" }} }, .errors = { {http_error, { render((r){(asset){ #embed "static/5xx.mustache.html" }}) }}, {http_not_found, { render((r){(asset){ #embed "static/404.mustache.html" }}) }} } }, .modules = {todos, activity, session_auth} }; }