update the routes from /post/:id to /posts/:id
update the routes from /tag/:id to /tags/:id