ticket:3 moved middleware in hello app
(cherry picked from commit 56e3caf226b935a9e1b3b017223f056b509e7b43)