diff --git a/README.md b/README.md index 402c8706..e1a1298a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 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) Core libraries for the Angel Framework. \ No newline at end of file diff --git a/lib/src/http/hooked_service.dart b/lib/src/http/hooked_service.dart index 3f7552f8..22d7c8e1 100644 --- a/lib/src/http/hooked_service.dart +++ b/lib/src/http/hooked_service.dart @@ -59,7 +59,7 @@ class HookedService extends Service { ..addAll((indexMiddleware == null) ? [] : indexMiddleware.handlers)); 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: [] ..addAll(handlers) ..addAll( @@ -79,7 +79,7 @@ class HookedService extends Service { patch( '/:id', (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: [] ..addAll(handlers) ..addAll( @@ -89,7 +89,7 @@ class HookedService extends Service { post( '/:id', (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: [] ..addAll(handlers) ..addAll( diff --git a/lib/src/http/service.dart b/lib/src/http/service.dart index c286c09e..d7f6e1a0 100644 --- a/lib/src/http/service.dart +++ b/lib/src/http/service.dart @@ -83,7 +83,7 @@ class Service extends Routable { ..addAll((indexMiddleware == null) ? [] : indexMiddleware.handlers)); 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: [] ..addAll(handlers) ..addAll( @@ -103,7 +103,7 @@ class Service extends Routable { patch( '/:id', (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: [] ..addAll(handlers) ..addAll( @@ -113,7 +113,7 @@ class Service extends Routable { post( '/:id', (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: [] ..addAll(handlers) ..addAll( diff --git a/pubspec.yaml b/pubspec.yaml index eb2f5260..a4f53d34 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: angel_framework -version: 1.0.0-dev.27 +version: 1.0.0-dev.28 description: Core libraries for the Angel framework. author: Tobe O homepage: https://github.com/angel-dart/angel_framework