/* * BigBlueButton - http://www.bigbluebutton.org * * Copyright (c) 2008-2009 by respective authors (see below). All rights reserved. * * BigBlueButton is free software; you can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License as published by the Free Software * Foundation; either version 3 of the License, or (at your option) any later * version. * * BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License along * with BigBlueButton; if not, If not, see . * * $Id: $ */ class UrlMappings { static mappings = { // "/presentation/$presentation_name"(controller:"presentation") { // println 'executing /presentation/default mapping' // action = [GET:'show', POST:'upload', DELETE:'delete'] // } "/presentation/upload"(controller:"presentation") { action = [GET:'show', POST:'upload', DELETE:'delete'] } "/presentation/$conference/$room/$presentation_name/slides"(controller:"presentation") { action = [GET:'numberOfSlides'] } "/presentation/$conference/$room/$presentation_name/slide/$id"(controller:"presentation") { action = [GET:'showSlide'] } "/presentation/$conference/$room/$presentation_name/thumbnails"(controller:"presentation") { action = [GET:'numberOfThumbnails'] } "/presentation/$conference/$room/$presentation_name/thumbnail/$id"(controller:"presentation") { action = [GET:'showThumbnail'] } "/portal/$action"(controller:"portal") "/api/$action"(controller:"api") "/conference-session/$action?/$id?"(controller:"publicScheduledSession") "/schedule/$action?/$id?"(controller:"scheduledSession") { // action = [GET:'show', POST:'create', DELETE:'delete'] } "/$controller/$action?/$id?"{ constraints { // apply constraints here } } "500"(view:'/error') "/" (controller: 'conference', action: 'list') /*** * Beginning of BBB's REST -APIs */ "/api/conference"(controller:"adhoc", parseRequest:true) { action = [GET:'showConference', POST:'createConference', DELETE:'deleteConference'] } "/api/conference/session"(controller:"adhoc", parseRequest:true) { action = [GET:'enterConference', POST:'joinConference'] } } }