fix mistake
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user