updated routes to accept post requests