# Routes
# This file defines all application routes (Higher priority routes first)



# ~~~~
#GET		/aaa									BaseController.test
# Home page
GET     /                                       UserNotLoggedController.index

# TESTINGTOOL TEST
*		/testingtool/test/{testId}				TestController.testingtoolTest(testId)
*		/testingtool/test						TestController.testingtoolTest
*		/test/{testId}							TestController.testingtoolTest(testId)
*		/test									TestController.testingtoolTest
*		/sortquestions							TestController.sortQuestions
*		/sortslides								TestController.sortSlides
POST	/cloneTest								TestController.cloneTest
OPTIONS	/cloneTest								TestController.cloneTest
*		/testingtool/sortquestions				TestController.sortQuestions
POST	/testingtool/cloneTest					TestController.cloneTest

# ATLAS TEST
*		/atlas/test/{testId}					TestController.atlasTest(testId)
*		/atlas/test								TestController.atlasTest
*		/atlas/sortquestions					TestController.sortQuestions
POST	/atlas/cloneTest						TestController.cloneTest


*	/deleteAll									BaseController.cleanAll

*		/question								QuestionController.question
*		/question/{questionId}					QuestionController.question(questionId)
POST	/importQuestion							QuestionController.importQuestion
OPTIONS	/importQuestion							QuestionController.importQuestion

*		/slide									SlideController.slide
*		/slide/{slideId}						SlideController.slide(slideId)
POST	/cloneSlide								SlideController.cloneSlide
OPTIONS	/cloneSlide								SlideController.cloneSlide

GET		/media/retrieve							MediaController.retrieve(repositoryId)
*		/media/retrieve							MediaController.retrieve
*		/media									MediaController.testingtoolMedia
*		/testingtool/media						MediaController.testingtoolMedia
*		/atlas/media							MediaController.atlasMedia
*		/media/{mediaId}						MediaController.media(mediaId)
*		/retrievePublic							BaseController.retrievePublic

*		/report/{reportId}						ReportController.report(reportId, type:'TESTINGTOOL')
*		/report									ReportController.report(null, type:'TESTINGTOOL')
*		/testingtool/report/{reportId}			ReportController.report(reportId, type:'TESTINGTOOL')
*		/testingtool/report						ReportController.report(null, , type:'TESTINGTOOL')
*		/atlas/report/{reportId}				ReportController.report(reportId, type:'ATLAS')
*		/atlas/report							ReportController.report(null, type:'ATLAS')
*		/reportcsv/{reportId}					ReportController.reportCsv(reportId)
*		/reportcsvpublic/{code}					BaseController.retrievePublicCsv(code)

*		/user									UserLoggedController.user
*		/user/{userId}							UserLoggedController.user(userId)
POST	/login									UserNotLoggedController.login
OPTIONS	/login									UserNotLoggedController.login
POST	/loginRecovery							UserNotLoggedController.loginRecovery
OPTIONS	/loginRecovery							UserNotLoggedController.loginRecovery
POST	/passwordReset							UserNotLoggedController.passwordReset
OPTIONS	/passwordReset							UserNotLoggedController.passwordReset
POST	/logout									UserLoggedController.logout
OPTIONS	/logout									UserLoggedController.logout

GET		/createTopics							UserNotLoggedController.createTopics

# Ignore favicon requests
GET     /favicon.ico                            404

# Map static resources from the /app/public folder to the /public path
GET     /public/                                staticDir:public

# Catch all
*       /{controller}/{action}                  {controller}.{action}
