const feathers = require('@feathersjs/feathers'); const express = require('@feathersjs/express'); const socketio = require('@feathersjs/socketio'); const configuration = require('@feathersjs/configuration'); 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(configuration()); app.configure(express.rest()); app.configure(socketio()); app.configure(services); module.exports = app;