MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / APIBaseURL

Method APIBaseURL

api/pkg/di/container.go:1604–1607  ·  view source on GitHub ↗

APIBaseURL returns the API base URL derived from EVENTS_QUEUE_ENDPOINT

()

Source from the content-addressed store, hash-verified

1602
1603// APIBaseURL returns the API base URL derived from EVENTS_QUEUE_ENDPOINT
1604func (container *Container) APIBaseURL() string {
1605 endpoint := os.Getenv("EVENTS_QUEUE_ENDPOINT")
1606 return strings.TrimSuffix(endpoint, "/v1/events")
1607}
1608
1609// AttachmentHandler creates a new AttachmentHandler
1610func (container *Container) AttachmentHandler() (handler *handlers.AttachmentHandler) {

Callers 1

MessageServiceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected