1 | define([ |
---|
2 | "./model/classes/questions", |
---|
3 | "./model/classes/surveyRuns", |
---|
4 | "./model/classes/surveys", |
---|
5 | "./pages/index", |
---|
6 | "./pages/previewSurvey", |
---|
7 | "./pages/question", |
---|
8 | "./pages/questions", |
---|
9 | "./pages/survey", |
---|
10 | "./pages/surveyRun", |
---|
11 | "./pages/surveys" |
---|
12 | ], function(questionsClass, surveyRunsClass, surveysClass, index, previewSurvey, question, questions, survey, surveyRun, surveys) { |
---|
13 | |
---|
14 | return [ |
---|
15 | { path: "/", redirect: "/index" }, |
---|
16 | { path: "/index", constructor: index }, |
---|
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 }, |
---|
22 | //{ path: "/sessions", constructor: sessions }, |
---|
23 | //{ path: "/session/:sessionId", constructor: session }, |
---|
24 | { path: surveysClass.getPreviewPath(':surveyId'), constructor: previewSurvey } |
---|
25 | ]; |
---|
26 | |
---|
27 | }); |
---|