2014-02-25 23:46:06 +08:00
|
|
|
class UrlMappings {
|
|
|
|
|
|
|
|
static mappings = {
|
|
|
|
"/presentation/upload"(controller:"presentation") {
|
2015-10-08 05:44:01 +08:00
|
|
|
action = [POST:'upload']
|
2014-02-25 23:46:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
"/presentation/test-convert"(controller:"presentation") {
|
|
|
|
action = [GET:'testConversion']
|
|
|
|
}
|
|
|
|
|
|
|
|
"/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']
|
|
|
|
}
|
2014-08-08 04:12:55 +08:00
|
|
|
|
2015-07-16 04:58:15 +08:00
|
|
|
"/presentation/$conference/$room/$presentation_name/svgs"(controller:"presentation") {
|
|
|
|
action = [GET:'numberOfSvgs']
|
2014-08-08 04:12:55 +08:00
|
|
|
}
|
|
|
|
|
2015-07-16 04:58:15 +08:00
|
|
|
"/presentation/$conference/$room/$presentation_name/svg/$id"(controller:"presentation") {
|
|
|
|
action = [GET:'showSvgImage']
|
2014-08-08 04:12:55 +08:00
|
|
|
}
|
2014-02-25 23:46:06 +08:00
|
|
|
|
|
|
|
"/presentation/$conference/$room/$presentation_name/textfiles"(controller:"presentation") {
|
|
|
|
action = [GET:'numberOfTextfiles']
|
|
|
|
}
|
|
|
|
|
2014-10-20 16:18:13 +08:00
|
|
|
"/presentation/$conference/$room/$presentation_name/textfiles/$id"(controller:"presentation") {
|
2014-02-25 23:46:06 +08:00
|
|
|
action = [GET:'showTextfile']
|
|
|
|
}
|
2014-11-04 01:45:39 +08:00
|
|
|
|
|
|
|
"/presentation/$conference/$room/$presentation_name/download"(controller:"presentation") {
|
|
|
|
action = [GET:'downloadFile']
|
|
|
|
}
|
2014-02-25 23:46:06 +08:00
|
|
|
|
|
|
|
"/api/setConfigXML"(controller:"api") {
|
|
|
|
action = [POST:'setConfigXML']
|
|
|
|
}
|
|
|
|
|
|
|
|
"/api/setPollXML"(controller:"api") {
|
|
|
|
action = [POST:'setPollXML']
|
|
|
|
}
|
|
|
|
|
2014-04-03 00:17:24 +08:00
|
|
|
"/api/getMeetings"(controller:"api") {
|
2015-06-30 06:18:39 +08:00
|
|
|
action = [GET:'getMeetingsHandler', POST:'getMeetingsHandler']
|
2014-04-03 00:17:24 +08:00
|
|
|
}
|
2016-07-12 03:57:11 +08:00
|
|
|
|
|
|
|
"/api/getSessions"(controller:"api") {
|
|
|
|
action = [GET:'getSessionsHandler', POST:'getSessionsHandler']
|
|
|
|
}
|
|
|
|
|
2014-04-03 00:17:24 +08:00
|
|
|
"/api/getRecordings"(controller:"api") {
|
2015-06-30 06:18:39 +08:00
|
|
|
action = [GET:'getRecordingsHandler', POST:'getRecordingsHandler']
|
2014-04-03 00:17:24 +08:00
|
|
|
}
|
2016-07-12 03:57:11 +08:00
|
|
|
|
|
|
|
"/api/updateRecordings"(controller:"api") {
|
|
|
|
action = [GET:'updateRecordingsHandler', POST:'updateRecordingsHandler']
|
|
|
|
}
|
|
|
|
|
2014-02-25 23:46:06 +08:00
|
|
|
"/$controller/$action?/$id?(.${format})?"{
|
|
|
|
constraints {
|
|
|
|
// apply constraints here
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-10-28 03:01:01 +08:00
|
|
|
"/"(controller:"api") {
|
|
|
|
action = [GET:'index']
|
|
|
|
}
|
|
|
|
|
2014-02-25 23:46:06 +08:00
|
|
|
"500"(view:'/error')
|
|
|
|
}
|
|
|
|
}
|