Arya fix it

Signed-off-by: Odyssey <odyssey346@disroot.org>
This commit is contained in:
Odyssey
2023-01-07 16:33:51 +01:00
commit 2a827841c9
7 changed files with 1032 additions and 0 deletions

14
utils/port.go Normal file
View File

@ -0,0 +1,14 @@
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
}