mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
fix echo test
This commit is contained in:
parent
28ddd4b5b2
commit
6d4f00a137
|
@ -2328,8 +2328,8 @@ class TestController { /* {{{ */
|
|||
$this->container = $container;
|
||||
}
|
||||
|
||||
public function echoData($request, $response) { /* {{{ */
|
||||
return $response->withJson(array('success'=>true, 'message'=>'This is the result of the echo call.', 'data'=>''), 200);
|
||||
public function echoData($request, $response, $args) { /* {{{ */
|
||||
return $response->withJson(array('success'=>true, 'message'=>'This is the result of the echo call.', 'data'=>$args['data']), 200);
|
||||
} /* }}} */
|
||||
} /* }}} */
|
||||
|
||||
|
@ -2504,7 +2504,7 @@ $app->post('/categories', \RestapiController::class.':createCategory');
|
|||
$app->put('/categories/{id}/name', \RestapiController::class.':changeCategoryName');
|
||||
$app->get('/attributedefinitions', \RestapiController::class.':getAttributeDefinitions');
|
||||
$app->put('/attributedefinitions/{id}/name', \RestapiController::class.':changeAttributeDefinitionName');
|
||||
$app->get('/echo', \TestController::class.':echoData');
|
||||
$app->get('/echo/{data}', \TestController::class.':echoData');
|
||||
$app->run();
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue
Block a user