Add route/id resource. Closes #10

This commit is contained in:
Héctor Hurtado
2020-09-09 13:27:30 +02:00
parent 774b9202b5
commit 6c3bee9ae0
4 changed files with 87 additions and 8 deletions
+3
View File
@@ -71,6 +71,9 @@ func Run(bindAddr string, wg *sync.WaitGroup) {
{"/handlers/{handlerID}/request/files/{name}/content", "GET", getRequestFileContent},
{"/handlers/{handlerID}/request/body", "GET", getRequestBody},
// route
//{"/handlers/{handlerID}/route/id", "GET", getRouteId},
// response
{"/handlers/{handlerID}/response/status", "PUT", lockResponseWriter(setResponseStatus)},
{"/handlers/{handlerID}/response/headers/{name}", "PUT", lockResponseWriter(setResponseHeaders)},