Protected routes by including a new function on line 6 that will require authentication for creating or modifying posts.