added routes for controllers and modified root directory to posts