From 890e6a96c5b003aa590857a7dc9f43f5dc5ba561 Mon Sep 17 00:00:00 2001 From: nilo Date: Mon, 14 Aug 2023 14:24:13 +0000 Subject: [PATCH] updated response --- .env | 32 ++++++++++++++++---------------- controllers/versionController.go | 4 ++-- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.env b/.env index 3ff6859..31fbb3a 100644 --- a/.env +++ b/.env @@ -12,21 +12,21 @@ API_SECRET=nyEX8BZ44KqTXeV2 #DB_PORT=5432 # DB configuration HOMOLOGAÇÃO -#API_PORT=8111 -#API_RELEASE="Homologação" -#DB_HOST=177.153.50.98 -#DB_DRIVER=postgres -#DB_USER=pcasthomolog -#DB_PASSWORD=@407Smc837 -#DB_NAME=pcasthomolog -#DB_PORT=5432 +API_PORT=8111 +API_RELEASE="Homologação" +DB_HOST=191.252.214.157 +DB_DRIVER=postgres +DB_USER=pcasthomolog +DB_PASSWORD=@407Smc837 +DB_NAME=pcasthomolog +DB_PORT=5432 # DB configuration PRODUÇÃO -API_PORT=8112 -API_RELEASE="" -DB_HOST=177.153.50.98 -DB_DRIVER=postgres -DB_USER=pcast -DB_PASSWORD=@407Smc837 -DB_NAME=pcast -DB_PORT=5432 \ No newline at end of file +#API_PORT=8112 +#API_RELEASE="" +#DB_HOST=177.153.50.98 +#DB_DRIVER=postgres +#DB_USER=pcast +#DB_PASSWORD=@407Smc837 +#DB_NAME=pcast +#DB_PORT=5432 diff --git a/controllers/versionController.go b/controllers/versionController.go index 46a99f7..5ab5ff8 100644 --- a/controllers/versionController.go +++ b/controllers/versionController.go @@ -8,8 +8,8 @@ import ( func Version(c *fiber.Ctx) error { if globals.API_RELEASE == "" { - return c.JSON(globals.API_VERSION) + return c.SendString(globals.API_VERSION) } else { - return c.JSON(globals.API_VERSION + "-" + globals.API_RELEASE) + return c.SendString(globals.API_VERSION + "-" + globals.API_RELEASE) } }