aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/webapp/apps/core/CoreResources.js
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-01-11 17:11:28 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2013-01-11 17:11:28 +0100
commit39636be7b018b9121696ce7bdc462ab2c3c8185d (patch)
tree08e33b02dce0082db08584ad6e09be1f4653bf41 /src/main/resources/webapp/apps/core/CoreResources.js
parent4e9d5b5a447144c910c2698975157ee296e2eac8 (diff)
downloadesper-testing-39636be7b018b9121696ce7bdc462ab2c3c8185d.tar.gz
esper-testing-39636be7b018b9121696ce7bdc462ab2c3c8185d.tar.bz2
esper-testing-39636be7b018b9121696ce7bdc462ab2c3c8185d.tar.xz
esper-testing-39636be7b018b9121696ce7bdc462ab2c3c8185d.zip
o Creating bin/web for running the web application.
Diffstat (limited to 'src/main/resources/webapp/apps/core/CoreResources.js')
-rw-r--r--src/main/resources/webapp/apps/core/CoreResources.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/main/resources/webapp/apps/core/CoreResources.js b/src/main/resources/webapp/apps/core/CoreResources.js
new file mode 100644
index 0000000..b258c85
--- /dev/null
+++ b/src/main/resources/webapp/apps/core/CoreResources.js
@@ -0,0 +1,25 @@
+'use strict';
+
+function Person($resource) {
+ return $resource('/resource/core/person/:uuid', {uuid: '@uuid'});
+}
+
+angular.module('person', ['ngResource']).factory('Person', Person);
+
+function Build($resource) {
+ return $resource('/resource/core/build/:uuid', {uuid: '@uuid'});
+}
+
+angular.module('build', ['ngResource']).factory('Build', Build);
+
+function BuildParticipant($resource) {
+ return $resource('/resource/core/build-participant/:uuid', {uuid: '@uuid'});
+}
+
+angular.module('buildParticipant', ['ngResource']).factory('BuildParticipant', BuildParticipant);
+
+function Badge($resource) {
+ return $resource('/resource/core/badge/:uuid', {uuid: '@uuid'});
+}
+
+angular.module('badge', ['ngResource']).factory('Badge', Badge);