diff options
author | eug-vs <eug-vs@keemail.me> | 2021-03-14 01:50:11 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-03-14 01:50:11 +0300 |
commit | dc00c06719b5192518a67177caafe28f5027c16c (patch) | |
tree | a05acbbacc75e5c6d7a0ff53f76eba0e28b5f9d5 /app.ts | |
download | commercel-api-dc00c06719b5192518a67177caafe28f5027c16c.tar.gz |
feat: create initial feathers app
Diffstat (limited to 'app.ts')
-rw-r--r-- | app.ts | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -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; + |