added first version of wix integration
parent
29cc6e71ab
commit
9f7b29c1ec
|
|
@ -183,12 +183,14 @@ func GetAllUsers(c *fiber.Ctx) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func WixIntegration(c *fiber.Ctx) error {
|
func WixIntegration(c *fiber.Ctx) error {
|
||||||
var data map[string]string
|
var data map[string]interface{}
|
||||||
|
|
||||||
if err := c.BodyParser(&data); err != nil {
|
if err := c.BodyParser(&data); err != nil {
|
||||||
return fiber.ErrBadRequest
|
return fiber.ErrBadRequest
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Printf("====================> Data from WIX: %v\n", data)
|
||||||
|
|
||||||
utils.PrettyPrintJson(data)
|
utils.PrettyPrintJson(data)
|
||||||
|
|
||||||
return c.JSON(data)
|
return c.JSON(data)
|
||||||
|
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
http://www.pcastt.com.br, http://pcastt.com.br, https://www.pcastt.com.br, https://pcastt.com.br {
|
|
||||||
root * /root/sites/pcastt
|
|
||||||
file_server
|
|
||||||
|
|
||||||
handle_path /api/* {
|
|
||||||
reverse_proxy localhost:8111
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -4,8 +4,7 @@ After=multi-user.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=/root/api
|
WorkingDirectory=/root/api
|
||||||
# RootDirectory=/root/api-homolog
|
ExecStart=/root/api/api prod
|
||||||
ExecStart=/root/api/api
|
|
||||||
Type=simple
|
Type=simple
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,8 @@ Description=Pcast Homolog API
|
||||||
After=multi-user.target
|
After=multi-user.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=/root/api-homolog
|
WorkingDirectory=/root/api
|
||||||
# RootDirectory=/root/api-homolog
|
ExecStart=/root/api/api homolog
|
||||||
ExecStart=/root/api-homolog/api
|
|
||||||
Type=simple
|
Type=simple
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
service apihomolog stop
|
|
||||||
cp /home/ftpuser/ftp/files/api /root/api-homolog
|
|
||||||
chmod 777 api
|
|
||||||
service apihomolog start
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
service api stop
|
|
||||||
cp /home/ftpuser/ftp/files/api /root/api
|
|
||||||
chmod 777 /root/api/api
|
|
||||||
service api start
|
|
||||||
Loading…
Reference in New Issue