summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichiel Schuurmans <michielschuurmans@gmail.com>2020-10-28 19:34:55 +0100
committerMichiel Schuurmans <michielschuurmans@gmail.com>2020-10-28 19:34:55 +0100
commitddf60b54720847e924f1fbb152b2cdf2f2b80105 (patch)
tree6cf8f6d8e5ca85ebd7d3a9505153d93f6a3f1cbe
parentb3d8c5680fdd268b8d76d56414e3a372bfd61b55 (diff)
Api: Re enable auth
Signed-off-by: Michiel Schuurmans <michielschuurmans@gmail.com>
-rw-r--r--api/routes/web.php10
1 files changed, 0 insertions, 10 deletions
diff --git a/api/routes/web.php b/api/routes/web.php
index fa86b06..d6479c7 100644
--- a/api/routes/web.php
+++ b/api/routes/web.php
@@ -18,7 +18,6 @@ $router->get('/', function () use ($router) {
});
-/*
$router->group(['prefix' => 'api/v1/blenders', 'middleware' => 'auth'], function () use ($router) {
$router->get('', ['middleware' => 'auth:blender:read', 'uses' => 'BlenderController@get_all']);
$router->get('{id}', ['middleware' => 'auth:blender:read', 'uses' => 'BlenderController@get_one']);
@@ -26,12 +25,3 @@ $router->group(['prefix' => 'api/v1/blenders', 'middleware' => 'auth'], function
$router->post('{id}/start', ['middleware' => 'auth:blender:operate', 'uses' => 'BlenderController@start']);
$router->post('{id}/stop', ['middleware' => 'auth:blender:operate', 'uses' => 'BlenderController@stop']);
});
-*/
-
-$router->group(['prefix' => 'api/v1/blenders'], function () use ($router) {
- $router->get('', ['uses' => 'BlenderController@get_all']);
- $router->get('{id}', ['uses' => 'BlenderController@get_one']);
- $router->post('', ['uses' => 'BlenderController@create']);
- $router->post('{id}/start', ['uses' => 'BlenderController@start']);
- $router->post('{id}/stop', ['uses' => 'BlenderController@stop']);
-});