Built a simple /api/posts route