blob: e146734a8600cc8f332f6eed8812e8e7466e744f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
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;
|