Maybe question not in right place but here are much good people)
I have a big app on Angular 2 on front. I created back on slim framework. It works good however I not sure in routes scheme. Now I have something like:
$app->group('/locations', function () {
$this->get('', 'Controllers\LocationsController:allLocations');
$this->post('', 'Controllers\LocationsController:createLocation');
$this->group('/{id:[0-9]+}', function () {
$this->get('', 'Controllers\LocationsController:getLocation');
$this->post('', 'Controllers\LocationsController:updateLocation');
});
});
and send request only with Locations without dependencies. Know you some article about very good routing scheme?