aboutsummaryrefslogtreecommitdiff
path: root/app.ts
diff options
context:
space:
mode:
Diffstat (limited to 'app.ts')
-rw-r--r--app.ts12
1 files changed, 11 insertions, 1 deletions
diff --git a/app.ts b/app.ts
index 7607537..4a60eb8 100644
--- a/app.ts
+++ b/app.ts
@@ -4,6 +4,7 @@ import express from '@feathersjs/express';
import socketio from '@feathersjs/socketio';
import { PollService } from './PollService';
+import {UserService} from "./UserService";
const app = express(feathers());
@@ -15,7 +16,7 @@ app.configure(socketio());
app.use(express.errorHandler());
app.use('/polls', new PollService());
-
+app.use('/users', new UserService());
// Add any new real-time connection to the `everybody` channel
app.on('connection', connection =>
@@ -43,3 +44,12 @@ app.service('polls').create({
}
}
});
+
+app.service('users').create({
+ info: {
+ name: 'John Doe',
+ age: 20,
+ nationality: 'Belarus',
+ sex: 'male'
+ }
+});