diff --git a/bigbluebutton-web/grails-app/conf/UrlMappings.groovy b/bigbluebutton-web/grails-app/conf/UrlMappings.groovy index 7fb470e0dc8ab1133ad983950c16c8f7b1592db1..ef6b9a64e2372f8ab9c97dba63c0edb858a1d331 100755 --- a/bigbluebutton-web/grails-app/conf/UrlMappings.groovy +++ b/bigbluebutton-web/grails-app/conf/UrlMappings.groovy @@ -52,6 +52,10 @@ class UrlMappings { action = [GET:'showTextfile'] } + "/api/setConfigXML"(controller:"api") { + action = [POST:'setConfigXML'] + } + "/$controller/$action?/$id?"{ constraints { // apply constraints here diff --git a/bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/ApiController.groovy b/bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/ApiController.groovy index bf8b5ea00923d2f6e491fddf2a0b07dc5d93472d..40cf829d9977cfb564718bb5d1ba1f9644ab633c 100755 --- a/bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/ApiController.groovy +++ b/bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/ApiController.groovy @@ -760,7 +760,9 @@ class ApiController { * CONFIG API ***********************************************/ def setConfigXML = { - + + println "Handling setConfigXML" + if (StringUtils.isEmpty(params.checksum)) { invalid("checksumError", "You did not pass the checksum security check") return