diff options
Diffstat (limited to 'app.ts')
-rw-r--r-- | app.ts | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -2,6 +2,7 @@ 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'; @@ -11,9 +12,11 @@ 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.use(express.errorHandler()); app.configure(services); |