I have written a custom module that exports nodes in different formats. The module itself works great but now I would to count how often one of the custom routes is called.
The desired route in the routing.yml looks like this:
Is there anything in the drupal api that I could use whenever something like /api/datasets/6c68978e-db0d-48d4-9750-73245d3e2cfb is called?
In the end, I would like generate a statistics file inside the module folder that counts the hits of this route per week. I just need some ideas how this could be realised. So far I couldn't find anything in the drupal api that would help me.