Add proxy middleware