filebrowser/git/post.go

16 lines
332 B
Go
Raw Normal View History

2016-03-06 13:14:05 +00:00
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
}