updated response
parent
da43388a8f
commit
890e6a96c5
32
.env
32
.env
|
|
@ -12,21 +12,21 @@ API_SECRET=nyEX8BZ44KqTXeV2
|
||||||
#DB_PORT=5432
|
#DB_PORT=5432
|
||||||
|
|
||||||
# DB configuration HOMOLOGAÇÃO
|
# DB configuration HOMOLOGAÇÃO
|
||||||
#API_PORT=8111
|
API_PORT=8111
|
||||||
#API_RELEASE="Homologação"
|
API_RELEASE="Homologação"
|
||||||
#DB_HOST=177.153.50.98
|
DB_HOST=191.252.214.157
|
||||||
#DB_DRIVER=postgres
|
DB_DRIVER=postgres
|
||||||
#DB_USER=pcasthomolog
|
DB_USER=pcasthomolog
|
||||||
#DB_PASSWORD=@407Smc837
|
DB_PASSWORD=@407Smc837
|
||||||
#DB_NAME=pcasthomolog
|
DB_NAME=pcasthomolog
|
||||||
#DB_PORT=5432
|
DB_PORT=5432
|
||||||
|
|
||||||
# DB configuration PRODUÇÃO
|
# DB configuration PRODUÇÃO
|
||||||
API_PORT=8112
|
#API_PORT=8112
|
||||||
API_RELEASE=""
|
#API_RELEASE=""
|
||||||
DB_HOST=177.153.50.98
|
#DB_HOST=177.153.50.98
|
||||||
DB_DRIVER=postgres
|
#DB_DRIVER=postgres
|
||||||
DB_USER=pcast
|
#DB_USER=pcast
|
||||||
DB_PASSWORD=@407Smc837
|
#DB_PASSWORD=@407Smc837
|
||||||
DB_NAME=pcast
|
#DB_NAME=pcast
|
||||||
DB_PORT=5432
|
#DB_PORT=5432
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@ import (
|
||||||
|
|
||||||
func Version(c *fiber.Ctx) error {
|
func Version(c *fiber.Ctx) error {
|
||||||
if globals.API_RELEASE == "" {
|
if globals.API_RELEASE == "" {
|
||||||
return c.JSON(globals.API_VERSION)
|
return c.SendString(globals.API_VERSION)
|
||||||
} else {
|
} else {
|
||||||
return c.JSON(globals.API_VERSION + "-" + globals.API_RELEASE)
|
return c.SendString(globals.API_VERSION + "-" + globals.API_RELEASE)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue