adds topic controllers

This commit is contained in:
prateek banga
2023-08-25 01:45:17 +05:30
parent df77f92860
commit 52f6b72f23
5 changed files with 242 additions and 21 deletions
+3
View File
@@ -217,6 +217,9 @@ class Exception extends \Exception
public const PROVIDER_NOT_FOUND = 'provider_not_found';
public const PROVIDER_INCORRECT_TYPE = 'provider_incorrect_type';
/** Topic */
public const TOPIC_NOT_FOUND = 'topic_not_found';
protected $type = '';
protected $errors = [];
@@ -0,0 +1,20 @@
<?php
namespace Appwrite\Utopia\Database\Validator\Queries;
class Topics extends Base
{
public const ALLOWED_ATTRIBUTES = [
'name',
'description',
];
/**
* Expression constructor
*
*/
public function __construct()
{
parent::__construct('topics', self::ALLOWED_ATTRIBUTES);
}
}