MCPcopy Create free account
hub / github.com/OpenCSGs/csghub-server / getService

Function getService

api/handler/git_http.go:494–499  ·  view source on GitHub ↗
(r *http.Request)

Source from the content-addressed store, hash-verified

492}
493
494func getService(r *http.Request) string {
495 if r.Method == "GET" {
496 return r.URL.Query().Get("service")
497 }
498 return filepath.Base(r.URL.Path)
499}
500
501type gzipResponseWriter struct {
502 gin.ResponseWriter

Callers 2

GitUploadPackMethod · 0.85
GitReceivePackMethod · 0.85

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected