func sendDevHandler(request *http.Request, resp http.ResponseWriter, redis *models.RedisLogger, user *models.Account, p Parameter) { form := p.(sendDevForm) err := user.AddDevice(form.Token) writeResponse(request.RequestURI, resp, nil, err) }