define([ "./model/classes/questions", "./model/classes/surveyRuns", "./model/classes/surveys", "./pages/index", "./pages/previewSurvey", "./pages/question", "./pages/questions", "./pages/survey", "./pages/surveyRun", "./pages/surveys" ], function(questionsClass, surveyRunsClass, surveysClass, index, previewSurvey, question, questions, survey, surveyRun, surveys) { return [ { path: "/", redirect: "/index" }, { path: "/index", constructor: index }, { path: questionsClass.getCollectionPath(), constructor: questions }, { path: questionsClass.getObjectPath(':objectId'), constructor: question }, { path: surveysClass.getCollectionPath(), constructor: surveys }, { path: surveysClass.getObjectPath(':objectId'), constructor: survey }, { path: surveyRunsClass.getObjectPath(':objectId'), constructor: surveyRun }, //{ path: "/sessions", constructor: sessions }, //{ path: "/session/:sessionId", constructor: session }, { path: surveysClass.getPreviewPath(':surveyId'), constructor: previewSurvey } ]; });