summaryrefslogtreecommitdiff
path: root/services/events/event.service.js
diff options
context:
space:
mode:
Diffstat (limited to 'services/events/event.service.js')
-rw-r--r--services/events/event.service.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/services/events/event.service.js b/services/events/event.service.js
new file mode 100644
index 0000000..e9e7e50
--- /dev/null
+++ b/services/events/event.service.js
@@ -0,0 +1,7 @@
+const service = require('feathers-mongoose');
+const Model = require('./event.model.js');
+
+const EventService = service({ Model })
+
+module.exports = app => app.use('/events', EventService);
+