We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4228ec9 commit 01c265dCopy full SHA for 01c265d
2 files changed
examples/blog/internal/blog/api/main.go
@@ -14,7 +14,7 @@ func NewMain() *Main {
14
}
15
16
func NewMainRoute(handler *Main) mHttp.RouteProvider {
17
- return mHttp.NewRouteProvider(
+ return mHttp.ProvideInputRoute(
18
"GET",
19
"/",
20
handler.Handle,
internal/mtools/templates/add_json_api/api_handler.go.tmpl
@@ -16,7 +16,7 @@ func New{{.StructName}}() *{{.StructName}} {
func New{{.StructName}}Route(handler *{{.StructName}}) mHttp.RouteProvider {
"{{.Method}}",
21
"{{.Uri}}",
22
0 commit comments