adds routes, posts and comments controllers