Files
kontor/go/pkg/application/registry/comic/registry.go
T
2025-04-29 12:52:55 +02:00

20 lines
494 B
Go

package comic
import (
"net/http"
"gitlab.com/tpeetz-kontor/kontor-go/cmd/pkg/context/comic/routing"
"gitlab.com/tpeetz-kontor/kontor-go/cmd/pkg/infrastructure/app"
)
func BuildComicService(app *app.Application) {
// Create our Handler
handler := routing.NewHandler(app)
// Create a sub router for this service
router := app.Router.Methods(http.MethodGet).Subrouter()
// Register our service routes
router.HandleFunc("/comics/comic", handler.ComicList).Name("comics:comicList")
}