Closed Keith-CY closed 1 year ago
Now the route in the mvp dapp is declared in an imperative way(https://github.com/ckb-js/kuai/blob/91a5ad378b47a420970fde6e86e0b7f2ddf72bda/packages/samples/mvp-dapp/src/app.controller.ts#L89-L92), which is not easy to read and maintain
It could be adjusted in a declarative way, as nest.js did(https://docs.nestjs.com/controllers#routing). This optimization could be implemented in IO layers
how is it going
PR: https://github.com/ckb-js/kuai/pull/191
Now the route in the mvp dapp is declared in an imperative way(https://github.com/ckb-js/kuai/blob/91a5ad378b47a420970fde6e86e0b7f2ddf72bda/packages/samples/mvp-dapp/src/app.controller.ts#L89-L92), which is not easy to read and maintain
It could be adjusted in a declarative way, as nest.js did(https://docs.nestjs.com/controllers#routing). This optimization could be implemented in IO layers