function templateFactoryDecorator($delegate) {
        var fromUrl = angular.bind($delegate, $delegate.fromUrl);
        $delegate.fromUrl = function (url, params) {
          if (url !== null && angular.isDefined(url) && angular.isString(url)) {
            url += (url.indexOf("?") === -1 ? "?" : "&");
            url += "v=" + cacheBuster;
          }

          return fromUrl(url, params);
        };

        return $delegate;
      }
Configuration for frontend application, this contains following main sections:

 1) Configure $httpProvider and $sailsSocketProvider
 2) Set necessary HTTP and Socket interceptor(s)
 3) Turn on HTML5 mode on application routes
 4) Set up application routes