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

Method RegisterRoutes

api/pkg/handlers/events_handler.go:40–42  ·  view source on GitHub ↗

RegisterRoutes registers the routes for the MessageHandler

(router fiber.Router, middlewares ...fiber.Handler)

Source from the content-addressed store, hash-verified

38
39// RegisterRoutes registers the routes for the MessageHandler
40func (h *EventsHandler) RegisterRoutes(router fiber.Router, middlewares ...fiber.Handler) {
41 h.register(router, fiber.MethodPost, "/v1/events", middlewares, h.Dispatch)
42}
43
44// Dispatch a cloud event
45// This is an internal API so no documentation provided

Callers

nothing calls this directly

Calls 1

registerMethod · 0.80

Tested by

no test coverage detected