【发布时间】:2018-10-22 09:39:07
【问题描述】:
我在 Slim 应用程序中有这条路线:
$app->get('/fasi/:id/',function ($id) use ($app) {
$app->render("fasi.html");
});
这回答了
http://test/fasi/1/
还要
http://test/fasi/1
有什么方法可以强制 Slim 只回答带有斜杠(第一个)的 url,或者重定向添加斜杠的客户端?
【问题讨论】:
标签: php url-routing slim