diff options
author | Camil Staps | 2015-05-12 18:35:07 +0200 |
---|---|---|
committer | Camil Staps | 2015-05-12 18:35:07 +0200 |
commit | ac28498d8b96733dfa679ec86371aaa6825d3079 (patch) | |
tree | d6f6e5094e20fb4ee197830aa7dac7988e0ad279 /src/routes.php | |
parent | Cleanup; show user_token-token field on store request (POST) (diff) |
Authentication with tokens
Diffstat (limited to 'src/routes.php')
-rw-r--r-- | src/routes.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/routes.php b/src/routes.php index 4935f7c..d44ac20 100644 --- a/src/routes.php +++ b/src/routes.php @@ -25,6 +25,11 @@ Route::group(array('https'), function() { }); Route::api(['version' => 'v1', 'protected' => true, 'providers' => 'basic'], function () { + Route::resource('user_token', 'CamilStaps\BotleaguesApi\UserTokenController', + ['only' => ['store']]); + }); + + Route::api(['version' => 'v1', 'protected' => true, 'providers' => 'token'], function () { Route::resource('bot', 'CamilStaps\BotleaguesApi\BotController', ['except' => ['index', 'show', 'create','edit']]); @@ -33,7 +38,7 @@ Route::group(array('https'), function() { ['except' => ['index', 'show', 'create','edit','store']]); Route::resource('user_token', 'CamilStaps\BotleaguesApi\UserTokenController', - ['only' => ['index', 'show', 'store']]); + ['only' => ['index', 'show']]); Route::group(array('before' => 'administrator'), function() { |