diff --git a/www-api/app/Controllers/WrenchResources.php b/www-api/app/Controllers/WrenchResources.php index 89af02a3..71d8dc46 100644 --- a/www-api/app/Controllers/WrenchResources.php +++ b/www-api/app/Controllers/WrenchResources.php @@ -133,8 +133,6 @@ class WrenchResources extends BaseController //************************ private function AskCategoryData(): array { - - $arrayVar = [ "data" => [ [ @@ -154,7 +152,6 @@ class WrenchResources extends BaseController private function uploadTypes(): array { - //JPG, PNG, GIP, SVG, MP4, MP3, WEBM, OGG, GLB, GLTF $arrayVar = [ "data" => [ @@ -188,69 +185,43 @@ class WrenchResources extends BaseController "name" => "MP4", "max_size_mb" => "60", ], - ] ]; - return $arrayVar; - } private function CategoryData(): array { - - - $arrayVar = [ + return [ "data" => [ [ "id" => "0", - "name" => "blog", - "content" => "Blog", - "enabled" => 1 - ], - [ - "id" => "1", "name" => "onsale", "content" => "Questions?", "enabled" => 1 ], [ - "id" => "2", - "name" => "owned", - "content" => "Interesting", - "enabled" => 0 - ], - [ - "id" => "3", + "id" => "1", "name" => "created", "content" => "My Items", "enabled" => 1 ], - + [ + "id" => "2", + "name" => "blog", + "content" => "Blog", + "enabled" => 1 + ], + [ + "id" => "3", + "name" => "owned", + "content" => "Interesting", + "enabled" => 0 + ], ] ]; - /* - * [ - "id" => "4", - "name" => "hidden", - "content" => "Hidden", - ], - [ - "id" => "5", - "name" => "collection", - "content" => "Collection", - ], - [ - "id" => "6", - "name" => "activity", - "content" => "Activity", - ], - */ - return $arrayVar; } - //************************************ - public function index() {