Skip to content

Instantly share code, notes, and snippets.

@aranw
Created July 13, 2013 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aranw/5992199 to your computer and use it in GitHub Desktop.
Save aranw/5992199 to your computer and use it in GitHub Desktop.
Nesting Route Groups
<?php
Route::group(array('prefix' => 'api/v1'), function()
{
// URL => api/v1/
Route::get('auth', function() {
// URL => api/v1/auth
});
Route::group(array('prefix' => 'library'), function()
{
// URL => api/v1/library/
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment