From 9bf926d7233dae6f442ca8a60e52ebbd8fdfb5d2 Mon Sep 17 00:00:00 2001 From: kandrusyak Date: Wed, 16 Aug 2023 19:46:16 +0300 Subject: [PATCH] fix mistake --- .../personal-information.go | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/services/personal-information/personal-information.go b/services/personal-information/personal-information.go index bd9d98b..5e07dfb 100644 --- a/services/personal-information/personal-information.go +++ b/services/personal-information/personal-information.go @@ -46,7 +46,7 @@ func GetPD(c echo.Context) error { func CreatePD(c echo.Context) error { data, err, resp := api.PostRequest( - config.Env.MSHosts.EventsHost+"/persons/", + config.Env.MSHosts.PersonsHost+"/persons/", c.Request().Body, c.Request().Header) @@ -58,7 +58,7 @@ func CreatePD(c echo.Context) error { } func CreateDocuments(c echo.Context) error { data, err, resp := api.PostRequest( - config.Env.MSHosts.EventsHost+"/documents/", + config.Env.MSHosts.PersonsHost+"/documents/", c.Request().Body, c.Request().Header) @@ -70,7 +70,7 @@ func CreateDocuments(c echo.Context) error { } func CreateContacts(c echo.Context) error { data, err, resp := api.PostRequest( - config.Env.MSHosts.EventsHost+"/contacts/", + config.Env.MSHosts.PersonsHost+"/contacts/", c.Request().Body, c.Request().Header) @@ -82,7 +82,7 @@ func CreateContacts(c echo.Context) error { } func CreateAddress(c echo.Context) error { data, err, resp := api.PostRequest( - config.Env.MSHosts.EventsHost+"/address/", + config.Env.MSHosts.PersonsHost+"/address/", c.Request().Body, c.Request().Header) @@ -96,7 +96,7 @@ func UpdateDocuments(c echo.Context) error { id := c.Param("id") data, err, resp := api.PatchRequest( - config.Env.MSHosts.EventsHost+"/documents/"+id, + config.Env.MSHosts.PersonsHost+"/documents/"+id, c.Request().Body, c.Request().Header) @@ -110,7 +110,7 @@ func UpdateContacts(c echo.Context) error { id := c.Param("id") data, err, resp := api.PatchRequest( - config.Env.MSHosts.EventsHost+"/contacts/"+id, + config.Env.MSHosts.PersonsHost+"/contacts/"+id, c.Request().Body, c.Request().Header) @@ -124,7 +124,7 @@ func UpdateAddress(c echo.Context) error { id := c.Param("id") data, err, resp := api.PatchRequest( - config.Env.MSHosts.EventsHost+"/address/"+id, + config.Env.MSHosts.PersonsHost+"/address/"+id, c.Request().Body, c.Request().Header) @@ -138,7 +138,7 @@ func DeleteDocuments(c echo.Context) error { id := c.Param("id") data, err, resp := api.DeleteRequest( - config.Env.MSHosts.EventsHost+"/documents/"+id, + config.Env.MSHosts.PersonsHost+"/documents/"+id, c.Request().Header) if err != nil { @@ -151,7 +151,7 @@ func DeleteContacts(c echo.Context) error { id := c.Param("id") data, err, resp := api.DeleteRequest( - config.Env.MSHosts.EventsHost+"/contacts/"+id, + config.Env.MSHosts.PersonsHost+"/contacts/"+id, c.Request().Header) if err != nil { @@ -164,7 +164,7 @@ func DeleteAddress(c echo.Context) error { id := c.Param("id") data, err, resp := api.DeleteRequest( - config.Env.MSHosts.EventsHost+"/address/"+id, + config.Env.MSHosts.PersonsHost+"/address/"+id, c.Request().Header) if err != nil {