Bun + stricjs application – how to add access logs / middleware functionality

I’ve been trying to use Bun + stricjs for a very simple web backend. And I need to execute custom code before every request is processed without having to handle the paths myself

I tried registering a custom handler but when I request to /view/file.html the code for applying business rules is not executed.

// .....
export default new Router({hostname: "0.0.0.0"})
  .use('GET', "/*", ctx => {
    console.log(`Applying super complex business rules`);
  })
  .get("/view/*", dir("./public"));