(w http.ResponseWriter, r *http.Request)
| 217 | } |
| 218 | |
| 219 | func 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 | |
| 227 | func checkLogin(u User) string { |
| 228 |
nothing calls this directly
no test coverage detected