added data retrieval function to postPage route
added routing to a single post page