progresses on #23

This commit is contained in:
Henrique Dias
2015-09-30 22:03:28 +01:00
parent c44dba20f1
commit aa8620c52c
8 changed files with 68 additions and 32 deletions

View File

@@ -15,9 +15,9 @@ func ServeHTTP(w http.ResponseWriter, r *http.Request, c *config.Config) (int, e
switch r.Method {
case "DELETE":
return DELETE(w, r)
return DELETE(w, r, c)
case "POST":
return POST(w, r)
return POST(w, r, c)
case "GET":
return GET(w, r, c)
default: