->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()