|
|
|
@ -132,12 +132,12 @@ Flight::group('', function () {
|
|
|
|
|
|
|
|
|
|
// Test 16: UTF8 Chars in url with utf8 params
|
|
|
|
|
Flight::route('/わたしはひとです/@name', function ($name) {
|
|
|
|
|
echo '<span id="infotext">Route text:</span> This route status is that it <span style="color:'.($name === 'ええ' ? 'green' : 'red').'; font-weight: bold;">'.($name === 'ええ' ? 'succeeded' : 'failed').' URL Param: '.$name.'</span>';
|
|
|
|
|
echo '<span id="infotext">Route text:</span> This route status is that it <span style="color:' . ($name === 'ええ' ? 'green' : 'red') . '; font-weight: bold;">' . ($name === 'ええ' ? 'succeeded' : 'failed') . ' URL Param: ' . $name . '</span>';
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Test 17: Slash in param
|
|
|
|
|
Flight::route('/redirect/@id', function ($id) {
|
|
|
|
|
echo '<span id="infotext">Route text:</span> This route status is that it <span style="color:'.($id === 'before/after' ? 'green' : 'red').'; font-weight: bold;">'.($id === 'before/after' ? 'succeeded' : 'failed').' URL Param: '.$id.'</span>';
|
|
|
|
|
echo '<span id="infotext">Route text:</span> This route status is that it <span style="color:' . ($id === 'before/after' ? 'green' : 'red') . '; font-weight: bold;">' . ($id === 'before/after' ? 'succeeded' : 'failed') . ' URL Param: ' . $id . '</span>';
|
|
|
|
|
});
|
|
|
|
|
}, [ new LayoutMiddleware() ]);
|
|
|
|
|
|
|
|
|
|