mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
17 lines
322 B
Go
17 lines
322 B
Go
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) {
|
|
if r.Method != http.MethodPost {
|
|
return http.StatusNotImplemented, nil
|
|
}
|
|
|
|
return POST(w, r, c)
|
|
}
|