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