This repository has been archived by the owner on Jan 15, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a fix for issue #74 that will allow both the original method …
…of adding routes and the new map method to coexist without throwing an error. Before the fix, using: Macaw::get('/api/pages/partial/(:num)', 'Mynamespace\API\Pages@getPartial'); Macaw::put('/api/pages/partial/(:num)', 'Mynamespace\API\Pages@updatePartial'); would throw an error with when it tried to evaluate the maps array (which is null if you are not using the map function).
- Loading branch information