create endpoint that GETs post and votes