Skip to content

[Question] How to pass Custom Parameters inside URL #3

Closed
@cstayyab

Description

@cstayyab

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.

$app.get('/user/:username', function ($req, $res) {
   $res->send($req->params['username']);
}

Is there a way to do that in php-express?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions