remove swagger ui from middleware