fix person creation

This commit is contained in:
2024-05-17 01:52:58 +02:00
parent ab2fd071e0
commit 069d9317a3
5 changed files with 7 additions and 5 deletions

View File

@@ -71,8 +71,8 @@ func main() {
// Initialize the HTTP middleware by providing the authorization
mw := middleware.New(authZ)
router.GET("/health", hc.HealthCheckHandler())
router.Use(auth(mw))
router.GET("/health", hc.HealthCheckHandler())
router.GET("/person", handlers.ViewPerson(memgraphDriver))
router.POST("/person", handlers.CreatePerson(memgraphDriver))
router.DELETE("/person", handlers.DeletePerson(memgraphDriver))