diff options
Diffstat (limited to 'app.js')
-rw-r--r-- | app.js | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -0,0 +1,21 @@ +const feathers = require('@feathersjs/feathers'); +const express = require('@feathersjs/express'); +const socketio = require('@feathersjs/socketio'); +const cors = require('cors') + + + +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()); + + +module.exports = app; + |