From aa80b95124752095533cff761c3287d756ca26cd Mon Sep 17 00:00:00 2001 From: Marc Lasch Date: Wed, 12 Aug 2015 00:09:46 +0200 Subject: not working now --- src/server.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/server.cpp') diff --git a/src/server.cpp b/src/server.cpp index 222e8ea..3efb51d 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -1,16 +1,16 @@ #include #include #include "mongoose.h" +#include "apiHandler.h" using namespace std; int event_handler(struct mg_connection *conn, enum mg_event ev) { + apiHandler MyApiHandler(conn); + switch (ev) { case MG_AUTH: return MG_TRUE; - case MG_REQUEST: - if (conn->uri) { - cout<request_method<<" "<uri<