adding checks for content type and accepts on routes