APIBaseURL returns the API base URL derived from EVENTS_QUEUE_ENDPOINT
()
| 1602 | |
| 1603 | // APIBaseURL returns the API base URL derived from EVENTS_QUEUE_ENDPOINT |
| 1604 | func (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 |
| 1610 | func (container *Container) AttachmentHandler() (handler *handlers.AttachmentHandler) { |