aboutsummaryrefslogtreecommitdiff
path: root/app.ts
blob: 4d699fbdc8b2fd76c6a2c68a5e4a107f15f2cf8e (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
26
import feathers from '@feathersjs/feathers';
import express from '@feathersjs/express';
import socketio from '@feathersjs/socketio';
import configuration from '@feathersjs/configuration';
import '@feathersjs/transport-commons';
import cors from 'cors';

import services from './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);


export default app;