summaryrefslogtreecommitdiff
path: root/src/com/p4square/grow/backend/GrowBackend.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/p4square/grow/backend/GrowBackend.java')
-rw-r--r--src/com/p4square/grow/backend/GrowBackend.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/p4square/grow/backend/GrowBackend.java b/src/com/p4square/grow/backend/GrowBackend.java
index d072dfb..09c1d84 100644
--- a/src/com/p4square/grow/backend/GrowBackend.java
+++ b/src/com/p4square/grow/backend/GrowBackend.java
@@ -15,10 +15,12 @@ import org.restlet.routing.Router;
import com.p4square.grow.config.Config;
import com.p4square.grow.backend.db.CassandraDatabase;
+
+import com.p4square.grow.backend.resources.AccountResource;
import com.p4square.grow.backend.resources.SurveyResource;
import com.p4square.grow.backend.resources.SurveyResultsResource;
-import com.p4square.grow.backend.resources.TrainingResource;
import com.p4square.grow.backend.resources.TrainingRecordResource;
+import com.p4square.grow.backend.resources.TrainingResource;
/**
* Main class for the backend application.
@@ -40,6 +42,9 @@ public class GrowBackend extends Application {
public Restlet createInboundRoot() {
Router router = new Router(getContext());
+ // Account API
+ router.attach("/accounts/{userId}", AccountResource.class);
+
// Survey API
router.attach("/assessment/question/{questionId}", SurveyResource.class);