add list of blog posts in json format using router and model