feathers-memory
Advanced tools
Comparing version 0.3.2 to 0.3.3
var feathers = require('feathers'); | ||
var memory = require('../lib/memory'); | ||
var memory = require('../lib/memory')(); | ||
var app = feathers(); | ||
app.use('/users', memory) | ||
app.configure(feathers.rest()) | ||
.use('/users', memory) | ||
.configure(feathers.errors()) | ||
@@ -7,0 +8,0 @@ .listen(8080); |
var feathers = require('feathers'); | ||
var memory = require('../lib/memory'); | ||
var memory = require('../lib/memory')(); | ||
var app = feathers(); | ||
@@ -16,3 +16,4 @@ | ||
app.use('/users', myUserService) | ||
app.configure(feathers.rest()) | ||
.use('/users', myUserService) | ||
.configure(feathers.errors()) | ||
@@ -19,0 +20,0 @@ .listen(8080); |
{ | ||
"name": "feathers-memory", | ||
"description": "Feathers in memory service", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"homepage": "https://feathersjs.com", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -11,5 +11,5 @@ # feathers-memory [![Build Status](https://travis-ci.org/feathersjs/feathers-memory.svg?branch=master)](https://travis-ci.org/feathersjs/feathers-memory)[![Code Climate](https://codeclimate.com/github/feathersjs/feathers-memory.png)](https://codeclimate.com/github/feathersjs/feathers-memory) | ||
var feathers = require('feathers'); | ||
var memory = require('feathers-memory'); | ||
var memory = require('feathers-memory')(); | ||
var app = feathers().use('/users', memory); | ||
app.configure(feathers.rest()).use('/users', memory); | ||
``` | ||
@@ -41,6 +41,8 @@ | ||
var feathers = require('feathers'); | ||
var memory = require('feathers-memory'); | ||
var memory = require('feathers-memory')(); | ||
var app = feathers(); | ||
app.use('/users', memory).listen(8080); | ||
app.configure(feathers.rest()) | ||
.use('/users', memory) | ||
.listen(8080); | ||
``` | ||
@@ -54,3 +56,3 @@ | ||
var feathers = require('feathers'); | ||
var memory = require('feathers-memory'); | ||
var memory = require('feathers-memory')(); | ||
var app = feathers(); | ||
@@ -68,3 +70,5 @@ | ||
app.use('/users', myUserService).listen(8080); | ||
app.configure(feathers.rest()) | ||
.use('/users', myUserService) | ||
.listen(8080); | ||
``` | ||
@@ -71,0 +75,0 @@ |
16283
395
144