func (p *politeiawww) handleProposalDetails(w http.ResponseWriter, r *http.Request) {
	// Add the path param to the struct.
	log.Tracef("handleProposalDetails")
	pathParams := mux.Vars(r)
	var pd v1.ProposalsDetails
	pd.Token = pathParams["token"]

	user, err := p.getSessionUser(r)
	if err != nil {
		if err != database.ErrUserNotFound {
			RespondWithError(w, r, 0,
				"handleProposalDetails: getSessionUser %v", err)
			return
		}
	}
	reply, err := p.backend.ProcessProposalDetails(pd, user)
	if err != nil {
		RespondWithError(w, r, 0,
			"handleProposalDetails: ProcessProposalDetails %v", err)
		return
	}

	// Reply with the proposal details.
	util.RespondWithJSON(w, http.StatusOK, reply)
}
// handleProposalDetails handles the incoming proposal details command. It fetches
// the complete details for an existing proposal.
handleProposalDetails handles the incoming proposal details command. It fetches
the complete details for an existing proposal.
// handleProposalDetails handles the incoming proposal details command . It fetches // the complete details for an existing proposal .
func (p *politeiawww) handleProposalDetails(w http.ResponseWriter, r *http.Request) {
	log.Tracef("handleProposalDetails")
	pathParams := mux.Vars(r)
	var pd v1.ProposalsDetails
	pd.Token = pathParams["token"]
	user, err := p.getSessionUser(r)
	if err != nil {
		if err != database.ErrUserNotFound {
			RespondWithError(w, r, 0,
				"handleProposalDetails: getSessionUser %v", err)
			return
		}
	}
	reply, err := p.backend.ProcessProposalDetails(pd, user)
	if err != nil {
		RespondWithError(w, r, 0,
			"handleProposalDetails: ProcessProposalDetails %v", err)
		return
	}
	util.RespondWithJSON(w, http.StatusOK, reply)
}
func ( p * politeiawww ) handleProposalDetails ( w http . ResponseWriter , r * http . Request ) { log . Tracef ( " " ) pathParams := mux . Vars ( r ) var pd v1 . ProposalsDetails pd . Token = pathParams [ " " ] user , err := p . getSessionUser ( r ) if err != nil { if err != database . ErrUserNotFound { RespondWithError ( w , r , 0 , " " , err ) return } } reply , err := p . backend . ProcessProposalDetails ( pd , user ) if err != nil { RespondWithError ( w , r , 0 , " " , err ) return } util . RespondWithJSON ( w , http . StatusOK , reply ) }
handleProposalDetails handles the incoming proposal details command.
handleProposalDetails handles the incoming proposal details command .
// Add the path param to the struct. // Reply with the proposal details.