Changeset 490 for Dev/trunk/src/client/qed-client/routes.js
- Timestamp:
- 03/08/14 22:51:23 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/client/qed-client/routes.js
r487 r490 1 1 define([ 2 "./model/classes/questions", 3 "./model/classes/surveyRuns", 4 "./model/classes/surveys", 2 5 "./pages/index", 3 6 "./pages/previewSurvey", … … 7 10 "./pages/surveyRun", 8 11 "./pages/surveys" 9 ], function( index, previewSurvey, question, questions, survey, surveyRun, surveys) {12 ], function(questionsClass, surveyRunsClass, surveysClass, index, previewSurvey, question, questions, survey, surveyRun, surveys) { 10 13 11 14 return [ 12 15 { path: "/", redirect: "/index" }, 13 16 { path: "/index", constructor: index }, 14 { path: "/questions", constructor: questions },15 { path: "/question/:questionId", constructor: question },16 { path: "/surveys", constructor: surveys },17 { path: "/survey/:surveyId", constructor: survey },18 { path: "/surveyRun/:surveyRunId", constructor: surveyRun },17 { path: questionsClass.getCollectionPath(), constructor: questions }, 18 { path: questionsClass.getObjectPath(':objectId'), constructor: question }, 19 { path: surveysClass.getCollectionPath(), constructor: surveys }, 20 { path: surveysClass.getObjectPath(':objectId'), constructor: survey }, 21 { path: surveyRunsClass.getObjectPath(':objectId'), constructor: surveyRun }, 19 22 //{ path: "/sessions", constructor: sessions }, 20 23 //{ path: "/session/:sessionId", constructor: session }, 21 { path: "/previewSurvey/:surveyId", constructor: previewSurvey }24 { path: surveysClass.getPreviewPath(':surveyId'), constructor: previewSurvey } 22 25 ]; 23 26
Note: See TracChangeset
for help on using the changeset viewer.