forked from lda/telodendria
Start work on routing
This commit is contained in:
parent
f6dcea6a2f
commit
55967c2d75
1 changed files with 10 additions and 1 deletions
11
src/Matrix.c
11
src/Matrix.c
|
@ -43,9 +43,14 @@ MatrixHttpHandler(HttpServerContext * context, void *argp)
|
||||||
|
|
||||||
HashMap *response;
|
HashMap *response;
|
||||||
|
|
||||||
|
char *requestPath;
|
||||||
|
Array *pathParts;
|
||||||
|
|
||||||
|
requestPath = HttpRequestPath(context);
|
||||||
|
|
||||||
Log(lc, LOG_MESSAGE, "%s %s",
|
Log(lc, LOG_MESSAGE, "%s %s",
|
||||||
HttpRequestMethodToString(HttpRequestMethodGet(context)),
|
HttpRequestMethodToString(HttpRequestMethodGet(context)),
|
||||||
HttpRequestPath(context));
|
requestPath);
|
||||||
|
|
||||||
LogConfigIndent(lc);
|
LogConfigIndent(lc);
|
||||||
Log(lc, LOG_DEBUG, "Request headers:");
|
Log(lc, LOG_DEBUG, "Request headers:");
|
||||||
|
@ -79,6 +84,10 @@ MatrixHttpHandler(HttpServerContext * context, void *argp)
|
||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pathParts = ArrayCreate();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* TODO: Route requests here */
|
/* TODO: Route requests here */
|
||||||
|
|
||||||
HttpSendHeaders(context);
|
HttpSendHeaders(context);
|
||||||
|
|
Loading…
Reference in a new issue