28
This commit is contained in:
parent
93ea5bf6f1
commit
b41ee89ebf
4 changed files with 8 additions and 8 deletions
|
@ -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.
|
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue