PUT('/fake', function($request, $response, $args) { $testCodeInjectEnd = $args['testCodeInjectEnd']; $response->write('How about implementing testCodeInject */ ' " =end as a PUT method ?'); return $response; }); $app->run();