How to use the @feathersjs/feathers.rest function in @feathersjs/feathers

To help you get started, we’ve selected a few @feathersjs/feathers examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github feathersjs-ecosystem / feathers-logger / example / app.js View on Github external
app.log('info', 'Your params are:', { foo: 'bar' });
    app.warn('I\'m warning you... there is an error coming.');
    app.error('Oh noes!!');

    return Promise.resolve([]);
  },

  setup (app) {
    this.app = app;
  }
};

app.configure(logger(morgan({
  format: 'dev'
})))
  .configure(feathers.rest())
  .use('/users', userService);

app.listen(3030);

app.info('App listening on 127.0.0.1:3030');

@feathersjs/feathers

A framework for real-time applications and REST API with JavaScript and TypeScript

MIT
Latest version published 8 days ago

Package Health Score

92 / 100
Full package analysis