aboutsummaryrefslogtreecommitdiff
path: root/src/routes.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes.php')
-rw-r--r--src/routes.php7
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() {