This commit is contained in:
thosakwe 2016-12-03 11:32:20 -05:00
parent 93ea5bf6f1
commit b41ee89ebf
4 changed files with 8 additions and 8 deletions

View file

@ -1,6 +1,6 @@
# angel_framework # angel_framework
![version 1.0.0-dev.27](https://img.shields.io/badge/version-1.0.0--dev.27-red.svg) ![version 1.0.0-dev.28](https://img.shields.io/badge/version-1.0.0--dev.28-red.svg)
![build status](https://travis-ci.org/angel-dart/framework.svg) ![build status](https://travis-ci.org/angel-dart/framework.svg)
Core libraries for the Angel Framework. Core libraries for the Angel Framework.

View file

@ -59,7 +59,7 @@ class HookedService extends Service {
..addAll((indexMiddleware == null) ? [] : indexMiddleware.handlers)); ..addAll((indexMiddleware == null) ? [] : indexMiddleware.handlers));
Middleware createMiddleware = getAnnotation(inner.create, Middleware); Middleware createMiddleware = getAnnotation(inner.create, Middleware);
post('/', (req, res) async => await this.create(req.body, restProvider), post('/', (req, res) async => await this.create(req.body, mergeMap([req.query, restProvider])),
middleware: [] middleware: []
..addAll(handlers) ..addAll(handlers)
..addAll( ..addAll(
@ -79,7 +79,7 @@ class HookedService extends Service {
patch( patch(
'/:id', '/:id',
(req, res) async => (req, res) async =>
await this.modify(req.params['id'], req.body, restProvider), await this.modify(req.params['id'], req.body, mergeMap([req.query, restProvider])),
middleware: [] middleware: []
..addAll(handlers) ..addAll(handlers)
..addAll( ..addAll(
@ -89,7 +89,7 @@ class HookedService extends Service {
post( post(
'/:id', '/:id',
(req, res) async => (req, res) async =>
await this.update(req.params['id'], req.body, restProvider), await this.update(req.params['id'], req.body, mergeMap([req.query, restProvider])),
middleware: [] middleware: []
..addAll(handlers) ..addAll(handlers)
..addAll( ..addAll(

View file

@ -83,7 +83,7 @@ class Service extends Routable {
..addAll((indexMiddleware == null) ? [] : indexMiddleware.handlers)); ..addAll((indexMiddleware == null) ? [] : indexMiddleware.handlers));
Middleware createMiddleware = getAnnotation(this.create, Middleware); Middleware createMiddleware = getAnnotation(this.create, Middleware);
post('/', (req, res) async => await this.create(req.body, restProvider), post('/', (req, res) async => await this.create(req.body, mergeMap([req.query, restProvider])),
middleware: [] middleware: []
..addAll(handlers) ..addAll(handlers)
..addAll( ..addAll(
@ -103,7 +103,7 @@ class Service extends Routable {
patch( patch(
'/:id', '/:id',
(req, res) async => (req, res) async =>
await this.modify(req.params['id'], req.body, restProvider), await this.modify(req.params['id'], req.body, mergeMap([req.query, restProvider])),
middleware: [] middleware: []
..addAll(handlers) ..addAll(handlers)
..addAll( ..addAll(
@ -113,7 +113,7 @@ class Service extends Routable {
post( post(
'/:id', '/:id',
(req, res) async => (req, res) async =>
await this.update(req.params['id'], req.body, restProvider), await this.update(req.params['id'], req.body, mergeMap([req.query, restProvider])),
middleware: [] middleware: []
..addAll(handlers) ..addAll(handlers)
..addAll( ..addAll(

View file

@ -1,5 +1,5 @@
name: angel_framework name: angel_framework
version: 1.0.0-dev.27 version: 1.0.0-dev.28
description: Core libraries for the Angel framework. description: Core libraries for the Angel framework.
author: Tobe O <thosakwe@gmail.com> author: Tobe O <thosakwe@gmail.com>
homepage: https://github.com/angel-dart/angel_framework homepage: https://github.com/angel-dart/angel_framework