Concept PR simplify Module (#6231)
* add test of alternative impl * simplify query route too * change name querier * simplify register routes * revert change * add route * add router * first step refactor * refactor * update documentation * update * add format * simplify appmodule * update changelog * rename vars * remove interface * Update CHANGELOG.md Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
co-authored by
Federico Kunze
parent
e12fa58e14
commit
79c308ae4a
@@ -28,8 +28,8 @@ Let us break it down:
|
||||
|
||||
Module `handler`s are typically implemented in a `./handler.go` file inside the module's folder. The
|
||||
[module manager](./module-manager.md) is used to add the module's `handler`s to the
|
||||
[application's `router`](../core/baseapp.md#message-routing) via the `NewHandler()` method. Typically,
|
||||
the manager's `NewHandler()` method simply calls a `NewHandler()` method defined in `handler.go`,
|
||||
[application's `router`](../core/baseapp.md#message-routing) via the `Route()` method. Typically,
|
||||
the manager's `Route()` method simply constructs a Route that calls a `NewHandler()` method defined in `handler.go`,
|
||||
which looks like the following:
|
||||
|
||||
```go
|
||||
|
||||
Reference in New Issue
Block a user