]> _ Git - fluidbook-toolbox.git/commitdiff
Fix problem with API explorer route. Wait #5316 @0:05
authorStephen Cameron <stephen@cubedesigners.com>
Wed, 21 Sep 2022 16:38:07 +0000 (18:38 +0200)
committerStephen Cameron <stephen@cubedesigners.com>
Wed, 21 Sep 2022 16:38:07 +0000 (18:38 +0200)
app/Http/Controllers/Admin/Operations/FluidbookPublication/StatsOperation.php

index 07ddcfb80ca7f2d0c97885a9561f65fabdebf35b..c46391d878f0b682a2ab6e78128091c543751513 100644 (file)
@@ -19,12 +19,12 @@ trait StatsOperation
             ->withoutMiddleware([CheckIfAdmin::class])
             ->name('stats'); // Named route is used to generate URLs more consistently using route helper
 
+        // API testing tool (intended for superadmins only)
+        Route::get($segment . '/stats/API', $controller . '@statsAPI');
+
         // Shortcuts for easier access to hashed URLs - only users with sufficient permissions will be redirected
         Route::get($segment . '/stats/{fluidbook_id}', $controller . '@statsRedirect');
         Route::get($segment . '/{fluidbook_id}/stats', $controller . '@statsRedirect');
-
-        // API testing tool (intended for superadmins only)
-        Route::get($segment . '/stats/API', $controller . '@statsAPI');
     }
 
     protected function setupStatsDefaults()