|
@@ -13,7 +13,7 @@ discard block |
|
|
block discarded – undo |
|
13
|
13
|
$settings = array("settings"=>["determineRouteBeforeAppMiddleware"=>true]); |
|
14
|
14
|
parent::__construct($settings); |
|
15
|
15
|
$c = $this->getContainer(); |
|
16
|
|
- $c['errorHandler'] = function($c) { return new WebErrorHandler();}; |
|
|
16
|
+ $c['errorHandler'] = function($c) { return new WebErrorHandler(); }; |
|
17
|
17
|
$this->add(new AuthMiddleware()); |
|
18
|
18
|
$this->add(new ODataMiddleware()); |
|
19
|
19
|
} |
|
@@ -25,7 +25,7 @@ discard block |
|
|
block discarded – undo |
|
25
|
25
|
|
|
26
|
26
|
public function registerAPI($uri, $api) |
|
27
|
27
|
{ |
|
28
|
|
- $group = $this->group($uri, function() use($api){$api->setup($this);}); |
|
|
28
|
+ $group = $this->group($uri, function() use($api){$api->setup($this); }); |
|
29
|
29
|
$group->add(new \Http\Rest\SerializationMiddleware()); |
|
30
|
30
|
$group->add(new \Http\Rest\CORSMiddleware($this->getContainer())); |
|
31
|
31
|
} |
Please login to merge, or discard this patch.