progresses on #41

This commit is contained in:
Henrique Dias committed 2016-03-06 13:14:05 +00:00
1 parent 7e27c40841
commit fb0e4d79b2
3 files changed
+39

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
package git
import (
"net/http"
"github.com/hacdias/caddy-hugo/config"
)
// POST handles the POST method on GIT page which is only an API.
func POST(w http.ResponseWriter, r *http.Request, c *config.Config) (int, error) {
w.Header().Set("Content-Type", "application/json")
w.Write([]byte("{}"))
return http.StatusOK, nil
}