mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Splited controllers to client vs admin vs web
This commit is contained in:
@@ -16,7 +16,7 @@ use Database\Validator\UID;
|
||||
use DeviceDetector\DeviceDetector;
|
||||
use GeoIp2\Database\Reader;
|
||||
|
||||
include_once 'shared/api.php';
|
||||
include_once '../shared/api.php';
|
||||
|
||||
$utopia->get('/v1/users')
|
||||
->desc('List Users')
|
||||
@@ -13,7 +13,7 @@ use Database\Validator\Authorization;
|
||||
use DeviceDetector\DeviceDetector;
|
||||
use GeoIp2\Database\Reader;
|
||||
|
||||
include_once 'shared/api.php';
|
||||
include_once '../shared/api.php';
|
||||
|
||||
$utopia->get('/v1/account')
|
||||
->desc('Get Account')
|
||||
@@ -18,7 +18,7 @@ use Database\Validator\UID;
|
||||
use Template\Template;
|
||||
use OpenSSL\OpenSSL;
|
||||
|
||||
include_once 'shared/api.php';
|
||||
include_once '../shared/api.php';
|
||||
|
||||
$utopia->post('/v1/auth/register')
|
||||
->desc('Register')
|
||||
@@ -15,7 +15,7 @@ use BaconQrCode\Renderer\Image\ImagickImageBackEnd;
|
||||
use BaconQrCode\Renderer\RendererStyle\RendererStyle;
|
||||
use BaconQrCode\Writer;
|
||||
|
||||
include_once 'shared/api.php';
|
||||
include_once '../shared/api.php';
|
||||
|
||||
$types = [
|
||||
'browsers' => include __DIR__.'/../config/avatars/browsers.php',
|
||||
@@ -19,7 +19,7 @@ use Database\Validator\Authorization;
|
||||
use Database\Exception\Authorization as AuthorizationException;
|
||||
use Database\Exception\Structure as StructureException;
|
||||
|
||||
include_once 'shared/api.php';
|
||||
include_once '../shared/api.php';
|
||||
|
||||
$isDev = (App::ENV_TYPE_PRODUCTION !== $utopia->getEnv());
|
||||
|
||||
@@ -6,7 +6,7 @@ use Utopia\App;
|
||||
use Utopia\Locale\Locale;
|
||||
use GeoIp2\Database\Reader;
|
||||
|
||||
include_once 'shared/api.php';
|
||||
include_once '../shared/api.php';
|
||||
|
||||
$utopia->get('/v1/locale')
|
||||
->desc('Get User Locale')
|
||||
@@ -22,7 +22,7 @@ use Storage\Compression\Algorithms\GZIP;
|
||||
use Resize\Resize;
|
||||
use OpenSSL\OpenSSL;
|
||||
|
||||
include_once 'shared/api.php';
|
||||
include_once '../shared/api.php';
|
||||
|
||||
Storage::addDevice('local', new Local('app-'.$project->getUid()));
|
||||
|
||||
@@ -18,7 +18,7 @@ use Database\Validator\Authorization;
|
||||
use Template\Template;
|
||||
use Auth\Auth;
|
||||
|
||||
include_once 'shared/api.php';
|
||||
include_once '../shared/api.php';
|
||||
|
||||
$utopia->get('/v1/teams')
|
||||
->desc('List Teams')
|
||||
Reference in New Issue
Block a user