filebrowser/routes/git/git.go

17 lines
322 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"
)
// ServeHTTP is used to serve the content of GIT API.
func ServeHTTP(w http.ResponseWriter, r *http.Request, c *config.Config) (int, error) {
2016-06-16 16:01:41 +00:00
if r.Method != http.MethodPost {
return http.StatusNotImplemented, nil
2016-03-06 13:14:05 +00:00
}
2016-06-16 16:01:41 +00:00
return POST(w, r, c)
2016-03-06 13:14:05 +00:00
}