Private
Public Access
15 lines
252 B
Go
15 lines
252 B
Go
package invitaciones
|
|
|
|
import (
|
|
"os"
|
|
"strings"
|
|
)
|
|
|
|
func construirLinkInvitacion(token string) string {
|
|
base := strings.TrimRight(os.Getenv("APP_URL"), "/")
|
|
if base == "" {
|
|
base = "http://localhost:3000"
|
|
}
|
|
return base + "/invitaciones/" + token
|
|
}
|