mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
16 lines
332 B
Go
16 lines
332 B
Go
|
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
|
||
|
}
|