Imagine you need to implement a page that does division. A user enters for example URL /division/12/3 and gets the answer: 4. You also need to log access to this page and possible errors when doing division.
How to correctly implement a routing handler for this page?