Add an example with custom middleware