We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d027e7a commit 5a3474aCopy full SHA for 5a3474a
http/module.go
@@ -80,7 +80,11 @@ func (m *Module) GetRouter() gonethttproute.RouterWrapper {
80
81
// Handler is a function that returns the handler
82
func (m *Module) Handler() http.Handler {
83
- return m.Handler()
+ // Check if the router is nil
84
+ if m.RouterWrapper == nil {
85
+ return nil
86
+ }
87
+ return m.RouterWrapper.Handler()
88
}
89
90
// GetPath is a function that returns the path
0 commit comments