Create PageRoute and PageNodeRoute middleware #18
Closed
opened 4 years ago by garrettmills
·
0 comments
Loading…
Reference in new issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
A lot of controller methods require a page and/or a node ID to be specified. This leads to a lot of duplicate code. Let's clean that up by creating middlewares do the following:
req.noded.page
and/orreq.noded.node