function proxyMiddleware(req, res, next) {
            /*
             * Proxy the REST API.
             */
            if (/^\/api\/.*/.test(req.url)) {
                proxy.web(req, res);
            } else {
                next();
            }
        }
/*
         * The proxy middleware is an Express middleware added to BrowserSync to
         * handle backend request and proxy them to your backend.
         */
The proxy middleware is an Express middleware added to BrowserSync to
handle backend request and proxy them to your backend.
The proxy middleware is an Express middleware added to BrowserSync to handle backend request and proxy them to your backend .
function proxyMiddleware(req, res, next) {
            if (/^\/api\/.*/.test(req.url)) {
                proxy.web(req, res);
            } else {
                next();
            }
        }
function proxyMiddleware ( req , res , next ) { if ( / ^\/api\/.* / . test ( req . url ) ) { proxy . web ( req , res ) ; } else { next ( ) ; } }
The proxy middleware is an Express middleware added to BrowserSync to
 handle backend request and proxy them to your backend.
The proxy middleware is an Express middleware added to BrowserSync to handle backend request and proxy them to your backend .
/*
             * Proxy the REST API.
             */