some changes

Signed-off-by: Odyssey <odyssey346@disroot.org>
This commit is contained in:
Odyssey
2023-01-07 17:44:25 +01:00
parent b1034bca16
commit de809e2837
5 changed files with 30 additions and 15 deletions

View File

@ -1,14 +0,0 @@
package utils
import (
"os"
)
// GetPort returns the port to listen on
func GetPort() string {
port := os.Getenv("PUBLAPI_PORT")
if port == "" {
port = "3000"
}
return ":" + port
}