MaCH repo
This commit is contained in:
19
06_todo_events/main.c
Normal file
19
06_todo_events/main.c
Normal file
@@ -0,0 +1,19 @@
|
||||
#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();
|
||||
}
|
||||
Reference in New Issue
Block a user