made the post reference api and create the first route for post