Skip to content

A free open source IT asset/license management system

Fixes #3514 - removed debugging code that was forcing 404

snipe68e831d55532
diff --git a/routes/api.php b/routes/api.php
index dae8225b6c..b61dd9441a 100644
--- a/routes/api.php
+++ b/routes/api.php
@@ -489,40 +489,4 @@ Route::group(['prefix' => 'v1','namespace' => 'Api'], function () {
}); // Users group
- ### DEBUG ROUTES ###
-
- Route::group(['prefix' => 'me'], function () {
-
- if (env('APP_ENV') == 'production') {
- abort(404);
- }
-
- Route::get('/profile', function () {
- return json_encode([
- 'name' => \Auth::user()->first_name . ' ' . \Auth::user()->last_name,
- 'email' => \Auth::user()->email,
- ]);
- });
-
- Route::get('/authenticated', function () {
- return json_encode([
- 'authenticated' => \Auth::check()
- ]);
- });
-
- Route::get('/permissions/{scope}/{action}', function ($scope, $action) {
- return json_encode([
- 'permission' => $scope . '.' . $action,
- 'authorized' => \Auth::user()->hasAccess($scope . '.' . $action),
- ]);
- });
-
- Route::get('/permissions', function () {
- return json_encode([
- 'permissions' => Auth::user()->permissions
- ]);
- });
-
-
- });
});