change status code

This commit is contained in:
2024-04-16 23:13:08 +02:00
parent 7358ef5db1
commit 5d19dad30f

View File

@@ -45,6 +45,6 @@ func CreatePerson(driver neo4j.DriverWithContext) gin.HandlerFunc {
return
}
c.JSON(200, gin.H{"person": rec.AsMap()})
c.JSON(http.StatusCreated, gin.H{"person": rec.AsMap()})
}
}