Slim: Grouping routes by domains

Created on 1 Apr 2019  路  1Comment  路  Source: slimphp/Slim

It might be nice to propose grouping routes by domains, as Symfony, Laravel or Lumen already does.

$app->group(['domain' => 'www.example.com'], function($request, $response, $args) {

});

$app->group(['domain' => 'subdomain.example.com'], function($request, $response, $args) {

});
won't implement

Most helpful comment

I don't think that belongs in Slim personally. A "sub-domain" inherently means a different domain, which means different context, which means it should be an entire different application. It's not because Symfony or Laravel does it that we should do it either.

>All comments

I don't think that belongs in Slim personally. A "sub-domain" inherently means a different domain, which means different context, which means it should be an entire different application. It's not because Symfony or Laravel does it that we should do it either.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

feryardiant picture feryardiant  路  20Comments

Paratron picture Paratron  路  24Comments

akrabat picture akrabat  路  43Comments

alexweissman picture alexweissman  路  38Comments

l0gicgate picture l0gicgate  路  50Comments