mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-13 22:39:06 +02:00
change status code
This commit is contained in:
@@ -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()})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user