All checks were successful
ci/woodpecker/push/build-image Pipeline was successful
18 lines
549 B
Go
18 lines
549 B
Go
// endpoints.go registers all HTTP endpoint definitions for weatherapi.
|
|
// Layer: adapters/inbound/httpapi endpoint registry only.
|
|
package httpapi
|
|
|
|
import "gitea.maximumdirect.net/ejr/feedapi/endpoint"
|
|
|
|
func Definitions(svc Service) []endpoint.Definition {
|
|
defs := []endpoint.Definition{
|
|
observationDefinition(svc),
|
|
alertsDefinition(svc),
|
|
conditionsDefinition(svc),
|
|
}
|
|
defs = append(defs, weatherStoriesDefinitions(svc)...)
|
|
defs = append(defs, discussionDefinitions(svc)...)
|
|
defs = append(defs, forecastDefinitions(svc)...)
|
|
return defs
|
|
}
|