diff options
Diffstat (limited to 'src/app.js')
-rw-r--r-- | src/app.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/app.js b/src/app.js new file mode 100644 index 0000000..45f9e61 --- /dev/null +++ b/src/app.js @@ -0,0 +1,23 @@ +const feathers = require('@feathersjs/feathers'); +const express = require('@feathersjs/express'); +const socketio = require('@feathersjs/socketio'); +const cors = require('cors') + +const services = require('./services'); + + +const app = express(feathers()); + +app.use(express.json()); +app.use(express.urlencoded({ extended: true })); +app.use(express.static(__dirname)); +app.use(express.errorHandler()); +app.use(cors()); + +app.configure(express.rest()); +app.configure(socketio()); +app.configure(services); + + +module.exports = app; + |