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
Wouldn’t this be solved with “dynamic route (with parameters)” (see README) as well?
$router->post('/user/:ignored', function ($ignored) {
// do something
});
You should even be able to write just function () without the parameter there.
But most of the times, you actually want to know the value of the wildcard, so that you can handle it differently depending on the value. Otherwise, you could (often) just omit that wildcard segment in the URL.
wildcard route (asterisk)
e.g
$API->post( "/user/*"..
Would this be possible?
The text was updated successfully, but these errors were encountered: