From b41ee89ebf0e2f6bc240916eec615169b04be44c Mon Sep 17 00:00:00 2001 From: thosakwe <thosakwe@gmail.com> Date: Sat, 3 Dec 2016 11:32:20 -0500 Subject: [PATCH] 28 --- README.md | 2 +- lib/src/http/hooked_service.dart | 6 +++--- lib/src/http/service.dart | 6 +++--- pubspec.yaml | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 402c8706..e1a1298a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # angel_framework - +  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 <thosakwe@gmail.com> homepage: https://github.com/angel-dart/angel_framework