API best practices were implemented: `/createposts` endpoint changed to `/posts`. Posts are now stored in-memory (using a global array) with unique IDs generated for each new post. GET requests retrieve all posts, and POST requests add new posts, returning the newly created post with its ID. Database integration will be covered later.