mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-13 22:39:06 +02:00
fix typo and add handlers to router
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
"github.com/vcscsvcscs/GenerationsHeritage/backend/memgraph"
|
||||
)
|
||||
|
||||
func DelteRelationship(driver neo4j.DriverWithContext) gin.HandlerFunc {
|
||||
func DeleteRelationship(driver neo4j.DriverWithContext) gin.HandlerFunc {
|
||||
return func(c *gin.Context) {
|
||||
var relationship memgraph.Relationship
|
||||
if err := c.ShouldBindJSON(&relationship); err != nil {
|
||||
|
@@ -46,7 +46,11 @@ func main() {
|
||||
router.GET("/health", hc.HealthCheckHandler())
|
||||
router.GET("/person", handlers.ViewPerson(memgraphDriver))
|
||||
router.POST("/createPerson", handlers.CreatePerson(memgraphDriver))
|
||||
router.DELETE("/deletePerson", handlers.DeletePerson(memgraphDriver))
|
||||
router.PUT("/updatePerson", handlers.UpdatePerson(memgraphDriver))
|
||||
router.POST("/createRelationship", handlers.CreateRelationship(memgraphDriver))
|
||||
router.DELETE("/deleteRelationship", handlers.DeleteRelationship(memgraphDriver))
|
||||
router.PUT("/verifyRelationship", handlers.VerifyRelationship(memgraphDriver))
|
||||
|
||||
server := utilities.SetupHttpsServer(router, *cert, *key, *httpsPort, *httpPort, requestTimeout)
|
||||
|
||||
|
Reference in New Issue
Block a user