MCPcopy Index your code
hub / github.com/devpew/Muffin-REST-API / login

Function login

main.go:219–225  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

217}
218
219func login(w http.ResponseWriter, r *http.Request) {
220 w.Header().Set("Access-Control-Allow-Origin", "*")
221 w.Header().Set("Content-Type", "application/json")
222 var u User
223 json.NewDecoder(r.Body).Decode(&u)
224 checkLogin(u)
225}
226
227func checkLogin(u User) string {
228

Callers

nothing calls this directly

Calls 1

checkLoginFunction · 0.85

Tested by

no test coverage detected