From 1b86dcef9fd537db800e0df2c2f3889ffbc69723 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 14 Mar 2021 06:44:05 +0300 Subject: feat: add products service --- src/app.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/app.ts (limited to 'src/app.ts') diff --git a/src/app.ts b/src/app.ts new file mode 100644 index 0000000..4b5ac3b --- /dev/null +++ b/src/app.ts @@ -0,0 +1,24 @@ +import feathers from '@feathersjs/feathers'; +import express from '@feathersjs/express'; +import socketio from '@feathersjs/socketio'; +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(express.rest()); +app.configure(socketio()); +app.configure(services); + + +export default app; + -- cgit v1.2.3