20 lines
324 B
C
20 lines
324 B
C
#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();
|
|
}
|