You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read code and documentation provided but I couldn't find a way to pass parameters like we do in express.js. Yeah I did find a way to pass "hash" and numeric "id" but not a custom parameter.
$app.get('/user/:username', function ($req, $res) {
$res->send($req->params['username']);
}
Is there a way to do that in php-express?
The text was updated successfully, but these errors were encountered:
https://github.com/riverside/php-express/blob/master/src/Request.php#L14 it should be possible to pass query parameters, i didn't write this and i just stumbled upon this gem. in theory you could write the functionality in here, definetely doable. although i'm not exactly sure what you mean by parameters.
Hi!
I have read code and documentation provided but I couldn't find a way to pass parameters like we do in express.js. Yeah I did find a way to pass "hash" and numeric "id" but not a custom parameter.
Is there a way to do that in php-express?
The text was updated successfully, but these errors were encountered: