diff --git a/src/Matrix.c b/src/Matrix.c index 9799fd5..1c28e06 100644 --- a/src/Matrix.c +++ b/src/Matrix.c @@ -43,9 +43,14 @@ MatrixHttpHandler(HttpServerContext * context, void *argp) HashMap *response; + char *requestPath; + Array *pathParts; + + requestPath = HttpRequestPath(context); + Log(lc, LOG_MESSAGE, "%s %s", HttpRequestMethodToString(HttpRequestMethodGet(context)), - HttpRequestPath(context)); + requestPath); LogConfigIndent(lc); Log(lc, LOG_DEBUG, "Request headers:"); @@ -79,6 +84,10 @@ MatrixHttpHandler(HttpServerContext * context, void *argp) goto finish; } + pathParts = ArrayCreate(); + + + /* TODO: Route requests here */ HttpSendHeaders(context);