Created
June 12, 2013 14:41
-
-
Save systemseven/5765893 to your computer and use it in GitHub Desktop.
This puts /api/v1 in front of all controller requests. Sort of like route grouping. Useful for API development. If api is updated you can create a v2 grouping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Route group for API versioning | |
Route::group(array('prefix' => 'api/v1', 'before' => 'auth.basic'), function() | |
{ | |
Route::resource('url', 'UrlController'); | |
Route::resource('user','UserController'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment