public/build/static/application.js
function(method, properties) {
            if (this.methods[method]) throw "Method already define for this backend: "+method;

            properties.id = method;
            properties.regexp = this.routeToRegExp(method);
            this.methods[method] = properties;

            return this;
        }
function(method, properties) {
            if (this.methods[method]) throw "Method already define for this backend: "+method;

            properties.id = method;
            properties.regexp = this.routeToRegExp(method);
            this.methods[method] = properties;

            return this;
        }
function ( method , properties ) { if ( this . methods [ method ] ) throw "Method already define for this backend: " + method ; properties . id = method ; properties . regexp = this . routeToRegExp ( method ) ; this . methods [ method ] = properties ; return this ; }
Add a backend method

@method addMethod
@param {string} method name for this method
@param {object} informations about this method
Add a backend method