diff --git a/www-api/app/Controllers/WrenchResources.php b/www-api/app/Controllers/WrenchResources.php index 98912c45..9dee7267 100644 --- a/www-api/app/Controllers/WrenchResources.php +++ b/www-api/app/Controllers/WrenchResources.php @@ -65,6 +65,125 @@ class WrenchResources extends BaseController } + //************************ + private function AskCategoryData(): array + { + + + $arrayVar = [ + "data" => [ + [ + "id" => "0", + "name" => "Possible Topics on ", + "question_key" => "ASK01", + ], + [ + "id" => "1", + "name" => "Summary description of", + "question_key" => "ASK02", + ], + ] + ]; + return $arrayVar; + } + + private function uploadTypes(): array + { + + //JPG, PNG, GIP, SVG, MP4, MP3, WEBM, OGG, GLB, GLTF + $arrayVar = [ + "data" => [ + [ + "id" => "JPG", + "name" => "JPG", + "max_size_mb" => "5", + ], + [ + "id" => "PNG", + "name" => "PNG", + "max_size_mb" => "4", + ], + [ + "id" => "GIP", + "name" => "GIP", + "max_size_mb" => "4", + ], + [ + "id" => "BMP", + "name" => "BMP", + "max_size_mb" => "4", + ], + [ + "id" => "PDF", + "name" => "PDF", + "max_size_mb" => "4", + ], + [ + "id" => "MP4", + "name" => "MP4", + "max_size_mb" => "10", + ], + + ] + ]; + + return $arrayVar; + + } + private function CategoryData(): array + { + + + $arrayVar = [ + "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", + "name" => "created", + "content" => "My Items", + "enabled" => 1 + ], + + ] + ]; + /* + * [ + "id" => "4", + "name" => "hidden", + "content" => "Hidden", + ], + [ + "id" => "5", + "name" => "collection", + "content" => "Collection", + ], + [ + "id" => "6", + "name" => "activity", + "content" => "Activity", + ], + */ + return $arrayVar; + } + //************************************ + public function index() {