class UrlMappings {

	static mappings = {
		"/Aggregator/$aggregatorName/$aggregatorAction/$parameter1?/$parameter2?" {
			controller = "gateway"
			action = [GET : "aggregatorGetRelay"]
		}
		"/DataMapping/$path**" {
			controller = "gateway"
			action = [GET : "dataMappingGetRelay", POST : "dataMappingPostRelay"]
		}
		"/DataTransformation/$path**" {
			controller = "gateway"
			action = [GET : "dataTransformationGetRelay", POST : "dataTransformationPostRelay"]
		}
		name definition : "/Definition" {
			controller = "gateway"
			action = [GET : "definitionGetRelay", POST : "definitionPostRelay"]
		}
		"/Definition/$path**" {
			controller = "gateway"
			action = [GET : "definitionGetRelay", POST : "definitionPostRelay"]
		}
		"/Europeana/$path**" {
			controller = "gateway"
			action = [GET : "europeanaGetRelay", POST : "europeanaPostRelay"]
		}
		"/help/$action" {
			controller = "help"
		}
		"/PIDGenerate/$path**" {
			controller = "gateway"
			action = [GET : "pidGenerateGetRelay", POST : "pidGeneratePostRelay"]
		}
		"/Preview/$path**" {
			controller = "gateway"
			action = [GET : "previewGetRelay", POST : "previewPostRelay"]
		}
		name setManager : "/SetManager" {
			controller = "gateway"
			action = [GET : "setManagerGetRelay", POST : "setManagerPostRelay"]
		}
		"/SetManager/$path**" {
			controller = "gateway"
			action = [GET : "setManagerGetRelay", POST : "setManagerPostRelay"]
		}
		"/Statistics/$path**" {
			controller = "gateway"
			action = [GET : "statisticsGetRelay", POST : "statisticsPostRelay"]
		}
		"/Test/$action" {
			controller = "test"
		}
		"/Validation/$path**" {
			controller = "gateway"
			action = [GET : "validateGetRelay", POST : "validatePostRelay"]
		}
		"/Validation2/$path**" {
			controller = "gateway"
			action = [GET : "validate2GetRelay", POST : "validate2PostRelay"]
		}

		"/"(view:"/index")
		"500"(view:'/error')
	}
}
