rest-proxy.php

Simple proxy for RESTful APIs
git clone git://git.finwo.net/app/rest-proxy.php
Log | Files | Refs | README

commit d5523f9bb757df311c5aaddfb39d16089c0ec6c3
parent e87ef36794ed17a53716d4b55455a904ca573ce5
Author: finwo <finwo@pm.me>
Date:   Wed, 20 Apr 2016 00:54:59 +0200

Another bugfix

Diffstat:
Msrc/Finwo/Framework/Application.php | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/Finwo/Framework/Application.php b/src/Finwo/Framework/Application.php @@ -73,9 +73,11 @@ class Application // Transform routes into route objects, for easy usage $routes = array(); foreach ($this->container->get('config.routes') as $name => $route) { - $routes[] = $route = new Route($name, $route); - $route->map( array_merge($_SERVER, $_REQUEST) ); - + $routes[] = $route = new Route($name, array_merge( + $_SERVER, + $_REQUEST, + $route + )); } $this->container->set('config.routes', $routes);